Buildify Envoy upb (#28558)
* Buildigy xds * Generate project * Buildify envoy * Added new upb files * Removed unused upb targets * Fix grpc_cel_engine * Update envoy-api to the latest * Regen upb * Regen projects * Fix bazel build on MacOS * More fix on bazel mac * Disable grpc_tool_test on Mac * Regen projectspull/28647/head
parent
b4d8ec2697
commit
97584d8346
299 changed files with 19674 additions and 6337 deletions
@ -0,0 +1,112 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/certs.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/certs.upb.h" |
||||
#include "google/protobuf/timestamp.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_Certificates_submsgs[1] = { |
||||
{.submsg = &envoy_admin_v3_Certificate_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_Certificates__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_Certificates_msginit = { |
||||
&envoy_admin_v3_Certificates_submsgs[0], |
||||
&envoy_admin_v3_Certificates__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_Certificate_submsgs[1] = { |
||||
{.submsg = &envoy_admin_v3_CertificateDetails_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_Certificate__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_Certificate_msginit = { |
||||
&envoy_admin_v3_Certificate_submsgs[0], |
||||
&envoy_admin_v3_Certificate__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_CertificateDetails_submsgs[3] = { |
||||
{.submsg = &envoy_admin_v3_CertificateDetails_OcspDetails_msginit}, |
||||
{.submsg = &envoy_admin_v3_SubjectAlternateName_msginit}, |
||||
{.submsg = &google_protobuf_Timestamp_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_CertificateDetails__fields[7] = { |
||||
{1, UPB_SIZE(16, 16), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(24, 32), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(44, 72), 0, 1, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(8, 8), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(32, 48), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(36, 56), 2, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(40, 64), 3, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_CertificateDetails_msginit = { |
||||
&envoy_admin_v3_CertificateDetails_submsgs[0], |
||||
&envoy_admin_v3_CertificateDetails__fields[0], |
||||
UPB_SIZE(48, 80), 7, _UPB_MSGEXT_NONE, 7, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_CertificateDetails_OcspDetails_submsgs[1] = { |
||||
{.submsg = &google_protobuf_Timestamp_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_CertificateDetails_OcspDetails__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_CertificateDetails_OcspDetails_msginit = { |
||||
&envoy_admin_v3_CertificateDetails_OcspDetails_submsgs[0], |
||||
&envoy_admin_v3_CertificateDetails_OcspDetails__fields[0], |
||||
UPB_SIZE(16, 24), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_SubjectAlternateName__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_SubjectAlternateName_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_SubjectAlternateName__fields[0], |
||||
UPB_SIZE(16, 32), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[5] = { |
||||
&envoy_admin_v3_Certificates_msginit, |
||||
&envoy_admin_v3_Certificate_msginit, |
||||
&envoy_admin_v3_CertificateDetails_msginit, |
||||
&envoy_admin_v3_CertificateDetails_OcspDetails_msginit, |
||||
&envoy_admin_v3_SubjectAlternateName_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_certs_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
5, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,360 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/certs.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_CERTS_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_CERTS_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 envoy_admin_v3_Certificates; |
||||
struct envoy_admin_v3_Certificate; |
||||
struct envoy_admin_v3_CertificateDetails; |
||||
struct envoy_admin_v3_CertificateDetails_OcspDetails; |
||||
struct envoy_admin_v3_SubjectAlternateName; |
||||
typedef struct envoy_admin_v3_Certificates envoy_admin_v3_Certificates; |
||||
typedef struct envoy_admin_v3_Certificate envoy_admin_v3_Certificate; |
||||
typedef struct envoy_admin_v3_CertificateDetails envoy_admin_v3_CertificateDetails; |
||||
typedef struct envoy_admin_v3_CertificateDetails_OcspDetails envoy_admin_v3_CertificateDetails_OcspDetails; |
||||
typedef struct envoy_admin_v3_SubjectAlternateName envoy_admin_v3_SubjectAlternateName; |
||||
extern const upb_msglayout envoy_admin_v3_Certificates_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_Certificate_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_CertificateDetails_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_CertificateDetails_OcspDetails_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_SubjectAlternateName_msginit; |
||||
struct google_protobuf_Timestamp; |
||||
extern const upb_msglayout google_protobuf_Timestamp_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.Certificates */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_Certificates *envoy_admin_v3_Certificates_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_Certificates *)_upb_msg_new(&envoy_admin_v3_Certificates_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Certificates *envoy_admin_v3_Certificates_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Certificates *ret = envoy_admin_v3_Certificates_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_Certificates_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Certificates *envoy_admin_v3_Certificates_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Certificates *ret = envoy_admin_v3_Certificates_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_Certificates_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_Certificates_serialize(const envoy_admin_v3_Certificates *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_Certificates_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_Certificates_has_certificates(const envoy_admin_v3_Certificates *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_admin_v3_Certificate* const* envoy_admin_v3_Certificates_certificates(const envoy_admin_v3_Certificates *msg, size_t *len) { return (const envoy_admin_v3_Certificate* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_admin_v3_Certificate** envoy_admin_v3_Certificates_mutable_certificates(envoy_admin_v3_Certificates *msg, size_t *len) { |
||||
return (envoy_admin_v3_Certificate**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Certificate** envoy_admin_v3_Certificates_resize_certificates(envoy_admin_v3_Certificates *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_Certificate**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_Certificate* envoy_admin_v3_Certificates_add_certificates(envoy_admin_v3_Certificates *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_Certificate* sub = (struct envoy_admin_v3_Certificate*)_upb_msg_new(&envoy_admin_v3_Certificate_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; |
||||
} |
||||
|
||||
/* envoy.admin.v3.Certificate */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_Certificate *envoy_admin_v3_Certificate_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_Certificate *)_upb_msg_new(&envoy_admin_v3_Certificate_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Certificate *envoy_admin_v3_Certificate_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Certificate *ret = envoy_admin_v3_Certificate_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_Certificate_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Certificate *envoy_admin_v3_Certificate_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Certificate *ret = envoy_admin_v3_Certificate_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_Certificate_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_Certificate_serialize(const envoy_admin_v3_Certificate *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_Certificate_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_Certificate_has_ca_cert(const envoy_admin_v3_Certificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_admin_v3_CertificateDetails* const* envoy_admin_v3_Certificate_ca_cert(const envoy_admin_v3_Certificate *msg, size_t *len) { return (const envoy_admin_v3_CertificateDetails* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
UPB_INLINE bool envoy_admin_v3_Certificate_has_cert_chain(const envoy_admin_v3_Certificate *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const envoy_admin_v3_CertificateDetails* const* envoy_admin_v3_Certificate_cert_chain(const envoy_admin_v3_Certificate *msg, size_t *len) { return (const envoy_admin_v3_CertificateDetails* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); } |
||||
|
||||
UPB_INLINE envoy_admin_v3_CertificateDetails** envoy_admin_v3_Certificate_mutable_ca_cert(envoy_admin_v3_Certificate *msg, size_t *len) { |
||||
return (envoy_admin_v3_CertificateDetails**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails** envoy_admin_v3_Certificate_resize_ca_cert(envoy_admin_v3_Certificate *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_CertificateDetails**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_CertificateDetails* envoy_admin_v3_Certificate_add_ca_cert(envoy_admin_v3_Certificate *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_CertificateDetails* sub = (struct envoy_admin_v3_CertificateDetails*)_upb_msg_new(&envoy_admin_v3_CertificateDetails_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; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails** envoy_admin_v3_Certificate_mutable_cert_chain(envoy_admin_v3_Certificate *msg, size_t *len) { |
||||
return (envoy_admin_v3_CertificateDetails**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails** envoy_admin_v3_Certificate_resize_cert_chain(envoy_admin_v3_Certificate *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_CertificateDetails**)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_CertificateDetails* envoy_admin_v3_Certificate_add_cert_chain(envoy_admin_v3_Certificate *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_CertificateDetails* sub = (struct envoy_admin_v3_CertificateDetails*)_upb_msg_new(&envoy_admin_v3_CertificateDetails_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; |
||||
} |
||||
|
||||
/* envoy.admin.v3.CertificateDetails */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_CertificateDetails *envoy_admin_v3_CertificateDetails_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_CertificateDetails *)_upb_msg_new(&envoy_admin_v3_CertificateDetails_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails *envoy_admin_v3_CertificateDetails_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CertificateDetails *ret = envoy_admin_v3_CertificateDetails_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_CertificateDetails_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails *envoy_admin_v3_CertificateDetails_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CertificateDetails *ret = envoy_admin_v3_CertificateDetails_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_CertificateDetails_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_CertificateDetails_serialize(const envoy_admin_v3_CertificateDetails *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_CertificateDetails_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_CertificateDetails_path(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CertificateDetails_serial_number(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_has_subject_alt_names(const envoy_admin_v3_CertificateDetails *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(44, 72)); } |
||||
UPB_INLINE const envoy_admin_v3_SubjectAlternateName* const* envoy_admin_v3_CertificateDetails_subject_alt_names(const envoy_admin_v3_CertificateDetails *msg, size_t *len) { return (const envoy_admin_v3_SubjectAlternateName* const*)_upb_array_accessor(msg, UPB_SIZE(44, 72), len); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_CertificateDetails_days_until_expiration(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); } |
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_has_valid_from(const envoy_admin_v3_CertificateDetails *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_valid_from(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 48), const struct google_protobuf_Timestamp*); } |
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_has_expiration_time(const envoy_admin_v3_CertificateDetails *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_expiration_time(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 56), const struct google_protobuf_Timestamp*); } |
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_has_ocsp_details(const envoy_admin_v3_CertificateDetails *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const envoy_admin_v3_CertificateDetails_OcspDetails* envoy_admin_v3_CertificateDetails_ocsp_details(const envoy_admin_v3_CertificateDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 64), const envoy_admin_v3_CertificateDetails_OcspDetails*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_path(envoy_admin_v3_CertificateDetails *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_serial_number(envoy_admin_v3_CertificateDetails *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_strview) = value; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName** envoy_admin_v3_CertificateDetails_mutable_subject_alt_names(envoy_admin_v3_CertificateDetails *msg, size_t *len) { |
||||
return (envoy_admin_v3_SubjectAlternateName**)_upb_array_mutable_accessor(msg, UPB_SIZE(44, 72), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName** envoy_admin_v3_CertificateDetails_resize_subject_alt_names(envoy_admin_v3_CertificateDetails *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_SubjectAlternateName**)_upb_array_resize_accessor2(msg, UPB_SIZE(44, 72), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_SubjectAlternateName* envoy_admin_v3_CertificateDetails_add_subject_alt_names(envoy_admin_v3_CertificateDetails *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_SubjectAlternateName* sub = (struct envoy_admin_v3_SubjectAlternateName*)_upb_msg_new(&envoy_admin_v3_SubjectAlternateName_msginit, arena); |
||||
bool ok = _upb_array_append_accessor2( |
||||
msg, UPB_SIZE(44, 72), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_days_until_expiration(envoy_admin_v3_CertificateDetails *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_valid_from(envoy_admin_v3_CertificateDetails *msg, struct google_protobuf_Timestamp* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 48), struct google_protobuf_Timestamp*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_mutable_valid_from(envoy_admin_v3_CertificateDetails *msg, upb_arena *arena) { |
||||
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)envoy_admin_v3_CertificateDetails_valid_from(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CertificateDetails_set_valid_from(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_expiration_time(envoy_admin_v3_CertificateDetails *msg, struct google_protobuf_Timestamp* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(36, 56), struct google_protobuf_Timestamp*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_mutable_expiration_time(envoy_admin_v3_CertificateDetails *msg, upb_arena *arena) { |
||||
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)envoy_admin_v3_CertificateDetails_expiration_time(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CertificateDetails_set_expiration_time(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_set_ocsp_details(envoy_admin_v3_CertificateDetails *msg, envoy_admin_v3_CertificateDetails_OcspDetails* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(40, 64), envoy_admin_v3_CertificateDetails_OcspDetails*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_CertificateDetails_OcspDetails* envoy_admin_v3_CertificateDetails_mutable_ocsp_details(envoy_admin_v3_CertificateDetails *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_CertificateDetails_OcspDetails* sub = (struct envoy_admin_v3_CertificateDetails_OcspDetails*)envoy_admin_v3_CertificateDetails_ocsp_details(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_admin_v3_CertificateDetails_OcspDetails*)_upb_msg_new(&envoy_admin_v3_CertificateDetails_OcspDetails_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CertificateDetails_set_ocsp_details(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.admin.v3.CertificateDetails.OcspDetails */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_CertificateDetails_OcspDetails *envoy_admin_v3_CertificateDetails_OcspDetails_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_CertificateDetails_OcspDetails *)_upb_msg_new(&envoy_admin_v3_CertificateDetails_OcspDetails_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails_OcspDetails *envoy_admin_v3_CertificateDetails_OcspDetails_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CertificateDetails_OcspDetails *ret = envoy_admin_v3_CertificateDetails_OcspDetails_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_CertificateDetails_OcspDetails_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CertificateDetails_OcspDetails *envoy_admin_v3_CertificateDetails_OcspDetails_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CertificateDetails_OcspDetails *ret = envoy_admin_v3_CertificateDetails_OcspDetails_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_CertificateDetails_OcspDetails_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_CertificateDetails_OcspDetails_serialize(const envoy_admin_v3_CertificateDetails_OcspDetails *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_CertificateDetails_OcspDetails_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_OcspDetails_has_valid_from(const envoy_admin_v3_CertificateDetails_OcspDetails *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_OcspDetails_valid_from(const envoy_admin_v3_CertificateDetails_OcspDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Timestamp*); } |
||||
UPB_INLINE bool envoy_admin_v3_CertificateDetails_OcspDetails_has_expiration(const envoy_admin_v3_CertificateDetails_OcspDetails *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_OcspDetails_expiration(const envoy_admin_v3_CertificateDetails_OcspDetails *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Timestamp*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_OcspDetails_set_valid_from(envoy_admin_v3_CertificateDetails_OcspDetails *msg, struct google_protobuf_Timestamp* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Timestamp*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_OcspDetails_mutable_valid_from(envoy_admin_v3_CertificateDetails_OcspDetails *msg, upb_arena *arena) { |
||||
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)envoy_admin_v3_CertificateDetails_OcspDetails_valid_from(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CertificateDetails_OcspDetails_set_valid_from(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CertificateDetails_OcspDetails_set_expiration(envoy_admin_v3_CertificateDetails_OcspDetails *msg, struct google_protobuf_Timestamp* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Timestamp*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Timestamp* envoy_admin_v3_CertificateDetails_OcspDetails_mutable_expiration(envoy_admin_v3_CertificateDetails_OcspDetails *msg, upb_arena *arena) { |
||||
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)envoy_admin_v3_CertificateDetails_OcspDetails_expiration(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CertificateDetails_OcspDetails_set_expiration(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.admin.v3.SubjectAlternateName */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName *envoy_admin_v3_SubjectAlternateName_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_SubjectAlternateName *)_upb_msg_new(&envoy_admin_v3_SubjectAlternateName_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName *envoy_admin_v3_SubjectAlternateName_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_SubjectAlternateName *ret = envoy_admin_v3_SubjectAlternateName_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_SubjectAlternateName_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName *envoy_admin_v3_SubjectAlternateName_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_SubjectAlternateName *ret = envoy_admin_v3_SubjectAlternateName_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_SubjectAlternateName_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_SubjectAlternateName_serialize(const envoy_admin_v3_SubjectAlternateName *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_SubjectAlternateName_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_SubjectAlternateName_name_dns = 1, |
||||
envoy_admin_v3_SubjectAlternateName_name_uri = 2, |
||||
envoy_admin_v3_SubjectAlternateName_name_ip_address = 3, |
||||
envoy_admin_v3_SubjectAlternateName_name_NOT_SET = 0 |
||||
} envoy_admin_v3_SubjectAlternateName_name_oneofcases; |
||||
UPB_INLINE envoy_admin_v3_SubjectAlternateName_name_oneofcases envoy_admin_v3_SubjectAlternateName_name_case(const envoy_admin_v3_SubjectAlternateName* msg) { return (envoy_admin_v3_SubjectAlternateName_name_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_SubjectAlternateName_has_dns(const envoy_admin_v3_SubjectAlternateName *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; } |
||||
UPB_INLINE upb_strview envoy_admin_v3_SubjectAlternateName_dns(const envoy_admin_v3_SubjectAlternateName *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); } |
||||
UPB_INLINE bool envoy_admin_v3_SubjectAlternateName_has_uri(const envoy_admin_v3_SubjectAlternateName *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; } |
||||
UPB_INLINE upb_strview envoy_admin_v3_SubjectAlternateName_uri(const envoy_admin_v3_SubjectAlternateName *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 2, upb_strview_make("", strlen(""))); } |
||||
UPB_INLINE bool envoy_admin_v3_SubjectAlternateName_has_ip_address(const envoy_admin_v3_SubjectAlternateName *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 3; } |
||||
UPB_INLINE upb_strview envoy_admin_v3_SubjectAlternateName_ip_address(const envoy_admin_v3_SubjectAlternateName *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 3, upb_strview_make("", strlen(""))); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_SubjectAlternateName_set_dns(envoy_admin_v3_SubjectAlternateName *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1); |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_SubjectAlternateName_set_uri(envoy_admin_v3_SubjectAlternateName *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 2); |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_SubjectAlternateName_set_ip_address(envoy_admin_v3_SubjectAlternateName *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 3); |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_certs_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_CERTS_PROTO_UPB_H_ */ |
@ -0,0 +1,117 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/clusters.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/clusters.upb.h" |
||||
#include "envoy/admin/v3/metrics.upb.h" |
||||
#include "envoy/config/cluster/v3/circuit_breaker.upb.h" |
||||
#include "envoy/config/core/v3/address.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "envoy/config/core/v3/health_check.upb.h" |
||||
#include "envoy/type/v3/percent.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_Clusters_submsgs[1] = { |
||||
{.submsg = &envoy_admin_v3_ClusterStatus_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_Clusters__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_Clusters_msginit = { |
||||
&envoy_admin_v3_Clusters_submsgs[0], |
||||
&envoy_admin_v3_Clusters__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_ClusterStatus_submsgs[3] = { |
||||
{.submsg = &envoy_admin_v3_HostStatus_msginit}, |
||||
{.submsg = &envoy_config_cluster_v3_CircuitBreakers_msginit}, |
||||
{.submsg = &envoy_type_v3_Percent_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_ClusterStatus__fields[7] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(1, 1), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(20, 40), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(32, 64), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(24, 48), 2, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(28, 56), 3, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_ClusterStatus_msginit = { |
||||
&envoy_admin_v3_ClusterStatus_submsgs[0], |
||||
&envoy_admin_v3_ClusterStatus__fields[0], |
||||
UPB_SIZE(40, 80), 7, _UPB_MSGEXT_NONE, 7, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_HostStatus_submsgs[5] = { |
||||
{.submsg = &envoy_admin_v3_HostHealthStatus_msginit}, |
||||
{.submsg = &envoy_admin_v3_SimpleMetric_msginit}, |
||||
{.submsg = &envoy_config_core_v3_Address_msginit}, |
||||
{.submsg = &envoy_config_core_v3_Locality_msginit}, |
||||
{.submsg = &envoy_type_v3_Percent_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_HostStatus__fields[9] = { |
||||
{1, UPB_SIZE(20, 32), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(40, 72), 0, 1, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(24, 40), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(28, 48), 3, 4, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(4, 4), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(12, 16), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(8, 8), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(32, 56), 4, 4, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(36, 64), 5, 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_HostStatus_msginit = { |
||||
&envoy_admin_v3_HostStatus_submsgs[0], |
||||
&envoy_admin_v3_HostStatus__fields[0], |
||||
UPB_SIZE(48, 80), 9, _UPB_MSGEXT_NONE, 9, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_HostHealthStatus__fields[8] = { |
||||
{1, UPB_SIZE(4, 4), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(5, 5), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(6, 6), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(7, 7), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(8, 8), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(9, 9), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(10, 10), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_HostHealthStatus_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_HostHealthStatus__fields[0], |
||||
UPB_SIZE(16, 16), 8, _UPB_MSGEXT_NONE, 8, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[4] = { |
||||
&envoy_admin_v3_Clusters_msginit, |
||||
&envoy_admin_v3_ClusterStatus_msginit, |
||||
&envoy_admin_v3_HostStatus_msginit, |
||||
&envoy_admin_v3_HostHealthStatus_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_clusters_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
4, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,388 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/clusters.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_CLUSTERS_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_CLUSTERS_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 envoy_admin_v3_Clusters; |
||||
struct envoy_admin_v3_ClusterStatus; |
||||
struct envoy_admin_v3_HostStatus; |
||||
struct envoy_admin_v3_HostHealthStatus; |
||||
typedef struct envoy_admin_v3_Clusters envoy_admin_v3_Clusters; |
||||
typedef struct envoy_admin_v3_ClusterStatus envoy_admin_v3_ClusterStatus; |
||||
typedef struct envoy_admin_v3_HostStatus envoy_admin_v3_HostStatus; |
||||
typedef struct envoy_admin_v3_HostHealthStatus envoy_admin_v3_HostHealthStatus; |
||||
extern const upb_msglayout envoy_admin_v3_Clusters_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_ClusterStatus_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_HostStatus_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_HostHealthStatus_msginit; |
||||
struct envoy_admin_v3_SimpleMetric; |
||||
struct envoy_config_cluster_v3_CircuitBreakers; |
||||
struct envoy_config_core_v3_Address; |
||||
struct envoy_config_core_v3_Locality; |
||||
struct envoy_type_v3_Percent; |
||||
extern const upb_msglayout envoy_admin_v3_SimpleMetric_msginit; |
||||
extern const upb_msglayout envoy_config_cluster_v3_CircuitBreakers_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_Address_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_Locality_msginit; |
||||
extern const upb_msglayout envoy_type_v3_Percent_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.Clusters */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_Clusters *envoy_admin_v3_Clusters_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_Clusters *)_upb_msg_new(&envoy_admin_v3_Clusters_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Clusters *envoy_admin_v3_Clusters_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Clusters *ret = envoy_admin_v3_Clusters_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_Clusters_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Clusters *envoy_admin_v3_Clusters_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Clusters *ret = envoy_admin_v3_Clusters_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_Clusters_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_Clusters_serialize(const envoy_admin_v3_Clusters *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_Clusters_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_Clusters_has_cluster_statuses(const envoy_admin_v3_Clusters *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_admin_v3_ClusterStatus* const* envoy_admin_v3_Clusters_cluster_statuses(const envoy_admin_v3_Clusters *msg, size_t *len) { return (const envoy_admin_v3_ClusterStatus* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_admin_v3_ClusterStatus** envoy_admin_v3_Clusters_mutable_cluster_statuses(envoy_admin_v3_Clusters *msg, size_t *len) { |
||||
return (envoy_admin_v3_ClusterStatus**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ClusterStatus** envoy_admin_v3_Clusters_resize_cluster_statuses(envoy_admin_v3_Clusters *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_ClusterStatus**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_ClusterStatus* envoy_admin_v3_Clusters_add_cluster_statuses(envoy_admin_v3_Clusters *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_ClusterStatus* sub = (struct envoy_admin_v3_ClusterStatus*)_upb_msg_new(&envoy_admin_v3_ClusterStatus_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; |
||||
} |
||||
|
||||
/* envoy.admin.v3.ClusterStatus */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_ClusterStatus *envoy_admin_v3_ClusterStatus_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_ClusterStatus *)_upb_msg_new(&envoy_admin_v3_ClusterStatus_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ClusterStatus *envoy_admin_v3_ClusterStatus_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ClusterStatus *ret = envoy_admin_v3_ClusterStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_ClusterStatus_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ClusterStatus *envoy_admin_v3_ClusterStatus_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ClusterStatus *ret = envoy_admin_v3_ClusterStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_ClusterStatus_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_ClusterStatus_serialize(const envoy_admin_v3_ClusterStatus *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_ClusterStatus_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_ClusterStatus_name(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_ClusterStatus_added_via_api(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_ClusterStatus_has_success_rate_ejection_threshold(const envoy_admin_v3_ClusterStatus *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_type_v3_Percent* envoy_admin_v3_ClusterStatus_success_rate_ejection_threshold(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct envoy_type_v3_Percent*); } |
||||
UPB_INLINE bool envoy_admin_v3_ClusterStatus_has_host_statuses(const envoy_admin_v3_ClusterStatus *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 64)); } |
||||
UPB_INLINE const envoy_admin_v3_HostStatus* const* envoy_admin_v3_ClusterStatus_host_statuses(const envoy_admin_v3_ClusterStatus *msg, size_t *len) { return (const envoy_admin_v3_HostStatus* const*)_upb_array_accessor(msg, UPB_SIZE(32, 64), len); } |
||||
UPB_INLINE bool envoy_admin_v3_ClusterStatus_has_local_origin_success_rate_ejection_threshold(const envoy_admin_v3_ClusterStatus *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct envoy_type_v3_Percent* envoy_admin_v3_ClusterStatus_local_origin_success_rate_ejection_threshold(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), const struct envoy_type_v3_Percent*); } |
||||
UPB_INLINE bool envoy_admin_v3_ClusterStatus_has_circuit_breakers(const envoy_admin_v3_ClusterStatus *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const struct envoy_config_cluster_v3_CircuitBreakers* envoy_admin_v3_ClusterStatus_circuit_breakers(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const struct envoy_config_cluster_v3_CircuitBreakers*); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_ClusterStatus_observability_name(const envoy_admin_v3_ClusterStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_name(envoy_admin_v3_ClusterStatus *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_added_via_api(envoy_admin_v3_ClusterStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_success_rate_ejection_threshold(envoy_admin_v3_ClusterStatus *msg, struct envoy_type_v3_Percent* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct envoy_type_v3_Percent*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_Percent* envoy_admin_v3_ClusterStatus_mutable_success_rate_ejection_threshold(envoy_admin_v3_ClusterStatus *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_admin_v3_ClusterStatus_success_rate_ejection_threshold(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_Percent*)_upb_msg_new(&envoy_type_v3_Percent_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ClusterStatus_set_success_rate_ejection_threshold(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostStatus** envoy_admin_v3_ClusterStatus_mutable_host_statuses(envoy_admin_v3_ClusterStatus *msg, size_t *len) { |
||||
return (envoy_admin_v3_HostStatus**)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 64), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostStatus** envoy_admin_v3_ClusterStatus_resize_host_statuses(envoy_admin_v3_ClusterStatus *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_HostStatus**)_upb_array_resize_accessor2(msg, UPB_SIZE(32, 64), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_HostStatus* envoy_admin_v3_ClusterStatus_add_host_statuses(envoy_admin_v3_ClusterStatus *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_HostStatus* sub = (struct envoy_admin_v3_HostStatus*)_upb_msg_new(&envoy_admin_v3_HostStatus_msginit, arena); |
||||
bool ok = _upb_array_append_accessor2( |
||||
msg, UPB_SIZE(32, 64), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_local_origin_success_rate_ejection_threshold(envoy_admin_v3_ClusterStatus *msg, struct envoy_type_v3_Percent* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), struct envoy_type_v3_Percent*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_Percent* envoy_admin_v3_ClusterStatus_mutable_local_origin_success_rate_ejection_threshold(envoy_admin_v3_ClusterStatus *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_admin_v3_ClusterStatus_local_origin_success_rate_ejection_threshold(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_Percent*)_upb_msg_new(&envoy_type_v3_Percent_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ClusterStatus_set_local_origin_success_rate_ejection_threshold(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_circuit_breakers(envoy_admin_v3_ClusterStatus *msg, struct envoy_config_cluster_v3_CircuitBreakers* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), struct envoy_config_cluster_v3_CircuitBreakers*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_cluster_v3_CircuitBreakers* envoy_admin_v3_ClusterStatus_mutable_circuit_breakers(envoy_admin_v3_ClusterStatus *msg, upb_arena *arena) { |
||||
struct envoy_config_cluster_v3_CircuitBreakers* sub = (struct envoy_config_cluster_v3_CircuitBreakers*)envoy_admin_v3_ClusterStatus_circuit_breakers(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_cluster_v3_CircuitBreakers*)_upb_msg_new(&envoy_config_cluster_v3_CircuitBreakers_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ClusterStatus_set_circuit_breakers(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ClusterStatus_set_observability_name(envoy_admin_v3_ClusterStatus *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value; |
||||
} |
||||
|
||||
/* envoy.admin.v3.HostStatus */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_HostStatus *envoy_admin_v3_HostStatus_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_HostStatus *)_upb_msg_new(&envoy_admin_v3_HostStatus_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostStatus *envoy_admin_v3_HostStatus_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_HostStatus *ret = envoy_admin_v3_HostStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_HostStatus_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostStatus *envoy_admin_v3_HostStatus_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_HostStatus *ret = envoy_admin_v3_HostStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_HostStatus_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_HostStatus_serialize(const envoy_admin_v3_HostStatus *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_HostStatus_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_address(const envoy_admin_v3_HostStatus *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_admin_v3_HostStatus_address(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct envoy_config_core_v3_Address*); } |
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_stats(const envoy_admin_v3_HostStatus *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(40, 72)); } |
||||
UPB_INLINE const struct envoy_admin_v3_SimpleMetric* const* envoy_admin_v3_HostStatus_stats(const envoy_admin_v3_HostStatus *msg, size_t *len) { return (const struct envoy_admin_v3_SimpleMetric* const*)_upb_array_accessor(msg, UPB_SIZE(40, 72), len); } |
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_health_status(const envoy_admin_v3_HostStatus *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const envoy_admin_v3_HostHealthStatus* envoy_admin_v3_HostStatus_health_status(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const envoy_admin_v3_HostHealthStatus*); } |
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_success_rate(const envoy_admin_v3_HostStatus *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const struct envoy_type_v3_Percent* envoy_admin_v3_HostStatus_success_rate(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct envoy_type_v3_Percent*); } |
||||
UPB_INLINE uint32_t envoy_admin_v3_HostStatus_weight(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_HostStatus_hostname(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview); } |
||||
UPB_INLINE uint32_t envoy_admin_v3_HostStatus_priority(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_local_origin_success_rate(const envoy_admin_v3_HostStatus *msg) { return _upb_hasbit(msg, 4); } |
||||
UPB_INLINE const struct envoy_type_v3_Percent* envoy_admin_v3_HostStatus_local_origin_success_rate(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 56), const struct envoy_type_v3_Percent*); } |
||||
UPB_INLINE bool envoy_admin_v3_HostStatus_has_locality(const envoy_admin_v3_HostStatus *msg) { return _upb_hasbit(msg, 5); } |
||||
UPB_INLINE const struct envoy_config_core_v3_Locality* envoy_admin_v3_HostStatus_locality(const envoy_admin_v3_HostStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 64), const struct envoy_config_core_v3_Locality*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_address(envoy_admin_v3_HostStatus *msg, struct envoy_config_core_v3_Address* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct envoy_config_core_v3_Address*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_Address* envoy_admin_v3_HostStatus_mutable_address(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_admin_v3_HostStatus_address(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_HostStatus_set_address(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_SimpleMetric** envoy_admin_v3_HostStatus_mutable_stats(envoy_admin_v3_HostStatus *msg, size_t *len) { |
||||
return (struct envoy_admin_v3_SimpleMetric**)_upb_array_mutable_accessor(msg, UPB_SIZE(40, 72), len); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_SimpleMetric** envoy_admin_v3_HostStatus_resize_stats(envoy_admin_v3_HostStatus *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_admin_v3_SimpleMetric**)_upb_array_resize_accessor2(msg, UPB_SIZE(40, 72), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_SimpleMetric* envoy_admin_v3_HostStatus_add_stats(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_SimpleMetric* sub = (struct envoy_admin_v3_SimpleMetric*)_upb_msg_new(&envoy_admin_v3_SimpleMetric_msginit, arena); |
||||
bool ok = _upb_array_append_accessor2( |
||||
msg, UPB_SIZE(40, 72), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_health_status(envoy_admin_v3_HostStatus *msg, envoy_admin_v3_HostHealthStatus* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), envoy_admin_v3_HostHealthStatus*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_HostHealthStatus* envoy_admin_v3_HostStatus_mutable_health_status(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_HostHealthStatus* sub = (struct envoy_admin_v3_HostHealthStatus*)envoy_admin_v3_HostStatus_health_status(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_admin_v3_HostHealthStatus*)_upb_msg_new(&envoy_admin_v3_HostHealthStatus_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_HostStatus_set_health_status(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_success_rate(envoy_admin_v3_HostStatus *msg, struct envoy_type_v3_Percent* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), struct envoy_type_v3_Percent*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_Percent* envoy_admin_v3_HostStatus_mutable_success_rate(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_admin_v3_HostStatus_success_rate(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_Percent*)_upb_msg_new(&envoy_type_v3_Percent_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_HostStatus_set_success_rate(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_weight(envoy_admin_v3_HostStatus *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_hostname(envoy_admin_v3_HostStatus *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_priority(envoy_admin_v3_HostStatus *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_local_origin_success_rate(envoy_admin_v3_HostStatus *msg, struct envoy_type_v3_Percent* value) { |
||||
_upb_sethas(msg, 4); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 56), struct envoy_type_v3_Percent*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_Percent* envoy_admin_v3_HostStatus_mutable_local_origin_success_rate(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_admin_v3_HostStatus_local_origin_success_rate(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_Percent*)_upb_msg_new(&envoy_type_v3_Percent_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_HostStatus_set_local_origin_success_rate(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostStatus_set_locality(envoy_admin_v3_HostStatus *msg, struct envoy_config_core_v3_Locality* value) { |
||||
_upb_sethas(msg, 5); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(36, 64), struct envoy_config_core_v3_Locality*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_Locality* envoy_admin_v3_HostStatus_mutable_locality(envoy_admin_v3_HostStatus *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_Locality* sub = (struct envoy_config_core_v3_Locality*)envoy_admin_v3_HostStatus_locality(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_Locality*)_upb_msg_new(&envoy_config_core_v3_Locality_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_HostStatus_set_locality(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.admin.v3.HostHealthStatus */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_HostHealthStatus *envoy_admin_v3_HostHealthStatus_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_HostHealthStatus *)_upb_msg_new(&envoy_admin_v3_HostHealthStatus_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostHealthStatus *envoy_admin_v3_HostHealthStatus_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_HostHealthStatus *ret = envoy_admin_v3_HostHealthStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_HostHealthStatus_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_HostHealthStatus *envoy_admin_v3_HostHealthStatus_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_HostHealthStatus *ret = envoy_admin_v3_HostHealthStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_HostHealthStatus_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_HostHealthStatus_serialize(const envoy_admin_v3_HostHealthStatus *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_HostHealthStatus_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_failed_active_health_check(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_failed_outlier_check(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(5, 5), bool); } |
||||
UPB_INLINE int32_t envoy_admin_v3_HostHealthStatus_eds_health_status(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_failed_active_degraded_check(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(6, 6), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_pending_dynamic_removal(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(7, 7), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_pending_active_hc(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_excluded_via_immediate_hc_fail(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(9, 9), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_HostHealthStatus_active_hc_timeout(const envoy_admin_v3_HostHealthStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(10, 10), bool); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_failed_active_health_check(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_failed_outlier_check(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(5, 5), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_eds_health_status(envoy_admin_v3_HostHealthStatus *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_failed_active_degraded_check(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(6, 6), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_pending_dynamic_removal(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(7, 7), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_pending_active_hc(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_excluded_via_immediate_hc_fail(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(9, 9), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_HostHealthStatus_set_active_hc_timeout(envoy_admin_v3_HostHealthStatus *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(10, 10), bool) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_clusters_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_CLUSTERS_PROTO_UPB_H_ */ |
@ -0,0 +1,54 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/init_dump.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/init_dump.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_UnreadyTargetsDumps_submsgs[1] = { |
||||
{.submsg = &envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_UnreadyTargetsDumps__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_UnreadyTargetsDumps_msginit = { |
||||
&envoy_admin_v3_UnreadyTargetsDumps_submsgs[0], |
||||
&envoy_admin_v3_UnreadyTargetsDumps__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_admin_v3_UnreadyTargetsDumps_msginit, |
||||
&envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_init_dump_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,125 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/init_dump.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_INIT_DUMP_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_INIT_DUMP_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 envoy_admin_v3_UnreadyTargetsDumps; |
||||
struct envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump; |
||||
typedef struct envoy_admin_v3_UnreadyTargetsDumps envoy_admin_v3_UnreadyTargetsDumps; |
||||
typedef struct envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump; |
||||
extern const upb_msglayout envoy_admin_v3_UnreadyTargetsDumps_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.UnreadyTargetsDumps */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps *envoy_admin_v3_UnreadyTargetsDumps_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_UnreadyTargetsDumps *)_upb_msg_new(&envoy_admin_v3_UnreadyTargetsDumps_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps *envoy_admin_v3_UnreadyTargetsDumps_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_UnreadyTargetsDumps *ret = envoy_admin_v3_UnreadyTargetsDumps_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_UnreadyTargetsDumps_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps *envoy_admin_v3_UnreadyTargetsDumps_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_UnreadyTargetsDumps *ret = envoy_admin_v3_UnreadyTargetsDumps_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_UnreadyTargetsDumps_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_UnreadyTargetsDumps_serialize(const envoy_admin_v3_UnreadyTargetsDumps *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_UnreadyTargetsDumps_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_UnreadyTargetsDumps_has_unready_targets_dumps(const envoy_admin_v3_UnreadyTargetsDumps *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump* const* envoy_admin_v3_UnreadyTargetsDumps_unready_targets_dumps(const envoy_admin_v3_UnreadyTargetsDumps *msg, size_t *len) { return (const envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump** envoy_admin_v3_UnreadyTargetsDumps_mutable_unready_targets_dumps(envoy_admin_v3_UnreadyTargetsDumps *msg, size_t *len) { |
||||
return (envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump** envoy_admin_v3_UnreadyTargetsDumps_resize_unready_targets_dumps(envoy_admin_v3_UnreadyTargetsDumps *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump* envoy_admin_v3_UnreadyTargetsDumps_add_unready_targets_dumps(envoy_admin_v3_UnreadyTargetsDumps *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump* sub = (struct envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump*)_upb_msg_new(&envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_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; |
||||
} |
||||
|
||||
/* envoy.admin.v3.UnreadyTargetsDumps.UnreadyTargetsDump */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *)_upb_msg_new(&envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *ret = envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *ret = envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_serialize(const envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_name(const envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE upb_strview const* envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_target_names(const envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_set_name(envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_mutable_target_names(envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_resize_target_names(envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(3, 4), arena); |
||||
} |
||||
UPB_INLINE bool envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump_add_target_names(envoy_admin_v3_UnreadyTargetsDumps_UnreadyTargetsDump *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(3, 4), &val, |
||||
arena); |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_init_dump_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_INIT_DUMP_PROTO_UPB_H_ */ |
@ -0,0 +1,60 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/listeners.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/listeners.upb.h" |
||||
#include "envoy/config/core/v3/address.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_Listeners_submsgs[1] = { |
||||
{.submsg = &envoy_admin_v3_ListenerStatus_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_Listeners__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_Listeners_msginit = { |
||||
&envoy_admin_v3_Listeners_submsgs[0], |
||||
&envoy_admin_v3_Listeners__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_ListenerStatus_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_Address_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_ListenerStatus__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_ListenerStatus_msginit = { |
||||
&envoy_admin_v3_ListenerStatus_submsgs[0], |
||||
&envoy_admin_v3_ListenerStatus__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_admin_v3_Listeners_msginit, |
||||
&envoy_admin_v3_ListenerStatus_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_listeners_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,131 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/listeners.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_LISTENERS_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_LISTENERS_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 envoy_admin_v3_Listeners; |
||||
struct envoy_admin_v3_ListenerStatus; |
||||
typedef struct envoy_admin_v3_Listeners envoy_admin_v3_Listeners; |
||||
typedef struct envoy_admin_v3_ListenerStatus envoy_admin_v3_ListenerStatus; |
||||
extern const upb_msglayout envoy_admin_v3_Listeners_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_ListenerStatus_msginit; |
||||
struct envoy_config_core_v3_Address; |
||||
extern const upb_msglayout envoy_config_core_v3_Address_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.Listeners */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_Listeners *envoy_admin_v3_Listeners_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_Listeners *)_upb_msg_new(&envoy_admin_v3_Listeners_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Listeners *envoy_admin_v3_Listeners_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Listeners *ret = envoy_admin_v3_Listeners_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_Listeners_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Listeners *envoy_admin_v3_Listeners_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Listeners *ret = envoy_admin_v3_Listeners_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_Listeners_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_Listeners_serialize(const envoy_admin_v3_Listeners *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_Listeners_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_admin_v3_Listeners_has_listener_statuses(const envoy_admin_v3_Listeners *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_admin_v3_ListenerStatus* const* envoy_admin_v3_Listeners_listener_statuses(const envoy_admin_v3_Listeners *msg, size_t *len) { return (const envoy_admin_v3_ListenerStatus* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_admin_v3_ListenerStatus** envoy_admin_v3_Listeners_mutable_listener_statuses(envoy_admin_v3_Listeners *msg, size_t *len) { |
||||
return (envoy_admin_v3_ListenerStatus**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ListenerStatus** envoy_admin_v3_Listeners_resize_listener_statuses(envoy_admin_v3_Listeners *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_admin_v3_ListenerStatus**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_ListenerStatus* envoy_admin_v3_Listeners_add_listener_statuses(envoy_admin_v3_Listeners *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_ListenerStatus* sub = (struct envoy_admin_v3_ListenerStatus*)_upb_msg_new(&envoy_admin_v3_ListenerStatus_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; |
||||
} |
||||
|
||||
/* envoy.admin.v3.ListenerStatus */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_ListenerStatus *envoy_admin_v3_ListenerStatus_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_ListenerStatus *)_upb_msg_new(&envoy_admin_v3_ListenerStatus_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ListenerStatus *envoy_admin_v3_ListenerStatus_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ListenerStatus *ret = envoy_admin_v3_ListenerStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_ListenerStatus_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ListenerStatus *envoy_admin_v3_ListenerStatus_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ListenerStatus *ret = envoy_admin_v3_ListenerStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_ListenerStatus_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_ListenerStatus_serialize(const envoy_admin_v3_ListenerStatus *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_ListenerStatus_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_ListenerStatus_name(const envoy_admin_v3_ListenerStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_ListenerStatus_has_local_address(const envoy_admin_v3_ListenerStatus *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_admin_v3_ListenerStatus_local_address(const envoy_admin_v3_ListenerStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_Address*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_ListenerStatus_set_name(envoy_admin_v3_ListenerStatus *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ListenerStatus_set_local_address(envoy_admin_v3_ListenerStatus *msg, struct envoy_config_core_v3_Address* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_Address*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_Address* envoy_admin_v3_ListenerStatus_mutable_local_address(envoy_admin_v3_ListenerStatus *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_admin_v3_ListenerStatus_local_address(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_Address*)_upb_msg_new(&envoy_config_core_v3_Address_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ListenerStatus_set_local_address(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_listeners_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_LISTENERS_PROTO_UPB_H_ */ |
@ -0,0 +1,44 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/memory.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/memory.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_Memory__fields[6] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(24, 24), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(32, 32), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(40, 40), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_Memory_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_Memory__fields[0], |
||||
UPB_SIZE(48, 48), 6, _UPB_MSGEXT_NONE, 6, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_admin_v3_Memory_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_memory_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,88 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/memory.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_MEMORY_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_MEMORY_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 envoy_admin_v3_Memory; |
||||
typedef struct envoy_admin_v3_Memory envoy_admin_v3_Memory; |
||||
extern const upb_msglayout envoy_admin_v3_Memory_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.Memory */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_Memory *envoy_admin_v3_Memory_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_Memory *)_upb_msg_new(&envoy_admin_v3_Memory_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Memory *envoy_admin_v3_Memory_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Memory *ret = envoy_admin_v3_Memory_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_Memory_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_Memory *envoy_admin_v3_Memory_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_Memory *ret = envoy_admin_v3_Memory_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_Memory_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_Memory_serialize(const envoy_admin_v3_Memory *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_Memory_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_allocated(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_heap_size(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_pageheap_unmapped(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_pageheap_free(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_total_thread_cache(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_Memory_total_physical_bytes(const envoy_admin_v3_Memory *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_Memory_set_allocated(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_Memory_set_heap_size(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_Memory_set_pageheap_unmapped(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_Memory_set_pageheap_free(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_Memory_set_total_thread_cache(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_Memory_set_total_physical_bytes(envoy_admin_v3_Memory *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_memory_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_MEMORY_PROTO_UPB_H_ */ |
@ -0,0 +1,41 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/metrics.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/metrics.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_SimpleMetric__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_SimpleMetric_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_SimpleMetric__fields[0], |
||||
UPB_SIZE(24, 32), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_admin_v3_SimpleMetric_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_metrics_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,81 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/metrics.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_METRICS_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_METRICS_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 envoy_admin_v3_SimpleMetric; |
||||
typedef struct envoy_admin_v3_SimpleMetric envoy_admin_v3_SimpleMetric; |
||||
extern const upb_msglayout envoy_admin_v3_SimpleMetric_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_SimpleMetric_COUNTER = 0, |
||||
envoy_admin_v3_SimpleMetric_GAUGE = 1 |
||||
} envoy_admin_v3_SimpleMetric_Type; |
||||
|
||||
|
||||
/* envoy.admin.v3.SimpleMetric */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_SimpleMetric *envoy_admin_v3_SimpleMetric_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_SimpleMetric *)_upb_msg_new(&envoy_admin_v3_SimpleMetric_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SimpleMetric *envoy_admin_v3_SimpleMetric_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_SimpleMetric *ret = envoy_admin_v3_SimpleMetric_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_SimpleMetric_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_SimpleMetric *envoy_admin_v3_SimpleMetric_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_SimpleMetric *ret = envoy_admin_v3_SimpleMetric_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_SimpleMetric_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_SimpleMetric_serialize(const envoy_admin_v3_SimpleMetric *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_SimpleMetric_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int32_t envoy_admin_v3_SimpleMetric_type(const envoy_admin_v3_SimpleMetric *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_SimpleMetric_value(const envoy_admin_v3_SimpleMetric *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_SimpleMetric_name(const envoy_admin_v3_SimpleMetric *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_SimpleMetric_set_type(envoy_admin_v3_SimpleMetric *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_SimpleMetric_set_value(envoy_admin_v3_SimpleMetric *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_SimpleMetric_set_name(envoy_admin_v3_SimpleMetric *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_metrics_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_METRICS_PROTO_UPB_H_ */ |
@ -0,0 +1,41 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/mutex_stats.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/mutex_stats.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_MutexStats__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_MutexStats_msginit = { |
||||
NULL, |
||||
&envoy_admin_v3_MutexStats__fields[0], |
||||
UPB_SIZE(24, 24), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_admin_v3_MutexStats_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_mutex_stats_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,76 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/mutex_stats.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_MUTEX_STATS_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_MUTEX_STATS_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 envoy_admin_v3_MutexStats; |
||||
typedef struct envoy_admin_v3_MutexStats envoy_admin_v3_MutexStats; |
||||
extern const upb_msglayout envoy_admin_v3_MutexStats_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.MutexStats */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_MutexStats *envoy_admin_v3_MutexStats_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_MutexStats *)_upb_msg_new(&envoy_admin_v3_MutexStats_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_MutexStats *envoy_admin_v3_MutexStats_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_MutexStats *ret = envoy_admin_v3_MutexStats_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_MutexStats_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_MutexStats *envoy_admin_v3_MutexStats_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_MutexStats *ret = envoy_admin_v3_MutexStats_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_MutexStats_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_MutexStats_serialize(const envoy_admin_v3_MutexStats *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_MutexStats_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE uint64_t envoy_admin_v3_MutexStats_num_contentions(const envoy_admin_v3_MutexStats *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_MutexStats_current_wait_cycles(const envoy_admin_v3_MutexStats *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); } |
||||
UPB_INLINE uint64_t envoy_admin_v3_MutexStats_lifetime_wait_cycles(const envoy_admin_v3_MutexStats *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_MutexStats_set_num_contentions(envoy_admin_v3_MutexStats *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_MutexStats_set_current_wait_cycles(envoy_admin_v3_MutexStats *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_MutexStats_set_lifetime_wait_cycles(envoy_admin_v3_MutexStats *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_mutex_stats_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_MUTEX_STATS_PROTO_UPB_H_ */ |
@ -0,0 +1,101 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/server_info.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/server_info.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "google/protobuf/duration.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_ServerInfo_submsgs[3] = { |
||||
{.submsg = &envoy_admin_v3_CommandLineOptions_msginit}, |
||||
{.submsg = &envoy_config_core_v3_Node_msginit}, |
||||
{.submsg = &google_protobuf_Duration_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_ServerInfo__fields[7] = { |
||||
{1, UPB_SIZE(8, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 4), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(24, 40), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(28, 48), 2, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(16, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(32, 56), 3, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(36, 64), 4, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_ServerInfo_msginit = { |
||||
&envoy_admin_v3_ServerInfo_submsgs[0], |
||||
&envoy_admin_v3_ServerInfo__fields[0], |
||||
UPB_SIZE(40, 80), 7, _UPB_MSGEXT_NONE, 7, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_CommandLineOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_Duration_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_CommandLineOptions__fields[34] = { |
||||
{1, UPB_SIZE(8, 8), 0, 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(28, 28), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(52, 56), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(60, 72), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(40, 40), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(68, 88), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(16, 16), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(76, 104), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(84, 120), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{10, UPB_SIZE(92, 136), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{11, UPB_SIZE(100, 152), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{13, UPB_SIZE(108, 168), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{14, UPB_SIZE(116, 184), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{15, UPB_SIZE(124, 200), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{16, UPB_SIZE(148, 248), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{17, UPB_SIZE(152, 256), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{18, UPB_SIZE(156, 264), 3, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{19, UPB_SIZE(20, 20), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{22, UPB_SIZE(41, 41), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{23, UPB_SIZE(42, 42), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{24, UPB_SIZE(32, 32), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{25, UPB_SIZE(43, 43), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{26, UPB_SIZE(44, 44), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{27, UPB_SIZE(45, 45), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{28, UPB_SIZE(160, 272), 0, 0, 9, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{30, UPB_SIZE(46, 46), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{31, UPB_SIZE(47, 47), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{32, UPB_SIZE(132, 216), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{33, UPB_SIZE(24, 24), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{34, UPB_SIZE(48, 48), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{35, UPB_SIZE(140, 232), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{36, UPB_SIZE(36, 36), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{37, UPB_SIZE(49, 49), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{38, UPB_SIZE(164, 280), 0, 0, 9, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_CommandLineOptions_msginit = { |
||||
&envoy_admin_v3_CommandLineOptions_submsgs[0], |
||||
&envoy_admin_v3_CommandLineOptions__fields[0], |
||||
UPB_SIZE(168, 288), 34, _UPB_MSGEXT_NONE, 11, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_admin_v3_ServerInfo_msginit, |
||||
&envoy_admin_v3_CommandLineOptions_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_server_info_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,377 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/server_info.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_SERVER_INFO_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_SERVER_INFO_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 envoy_admin_v3_ServerInfo; |
||||
struct envoy_admin_v3_CommandLineOptions; |
||||
typedef struct envoy_admin_v3_ServerInfo envoy_admin_v3_ServerInfo; |
||||
typedef struct envoy_admin_v3_CommandLineOptions envoy_admin_v3_CommandLineOptions; |
||||
extern const upb_msglayout envoy_admin_v3_ServerInfo_msginit; |
||||
extern const upb_msglayout envoy_admin_v3_CommandLineOptions_msginit; |
||||
struct envoy_config_core_v3_Node; |
||||
struct google_protobuf_Duration; |
||||
extern const upb_msglayout envoy_config_core_v3_Node_msginit; |
||||
extern const upb_msglayout google_protobuf_Duration_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_CommandLineOptions_Gradual = 0, |
||||
envoy_admin_v3_CommandLineOptions_Immediate = 1 |
||||
} envoy_admin_v3_CommandLineOptions_DrainStrategy; |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_CommandLineOptions_v4 = 0, |
||||
envoy_admin_v3_CommandLineOptions_v6 = 1 |
||||
} envoy_admin_v3_CommandLineOptions_IpVersion; |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_CommandLineOptions_Serve = 0, |
||||
envoy_admin_v3_CommandLineOptions_Validate = 1, |
||||
envoy_admin_v3_CommandLineOptions_InitOnly = 2 |
||||
} envoy_admin_v3_CommandLineOptions_Mode; |
||||
|
||||
typedef enum { |
||||
envoy_admin_v3_ServerInfo_LIVE = 0, |
||||
envoy_admin_v3_ServerInfo_DRAINING = 1, |
||||
envoy_admin_v3_ServerInfo_PRE_INITIALIZING = 2, |
||||
envoy_admin_v3_ServerInfo_INITIALIZING = 3 |
||||
} envoy_admin_v3_ServerInfo_State; |
||||
|
||||
|
||||
/* envoy.admin.v3.ServerInfo */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_ServerInfo *envoy_admin_v3_ServerInfo_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_ServerInfo *)_upb_msg_new(&envoy_admin_v3_ServerInfo_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ServerInfo *envoy_admin_v3_ServerInfo_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ServerInfo *ret = envoy_admin_v3_ServerInfo_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_ServerInfo_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_ServerInfo *envoy_admin_v3_ServerInfo_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_ServerInfo *ret = envoy_admin_v3_ServerInfo_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_ServerInfo_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_ServerInfo_serialize(const envoy_admin_v3_ServerInfo *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_ServerInfo_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_ServerInfo_version(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); } |
||||
UPB_INLINE int32_t envoy_admin_v3_ServerInfo_state(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_uptime_current_epoch(const envoy_admin_v3_ServerInfo *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_uptime_current_epoch(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_uptime_all_epochs(const envoy_admin_v3_ServerInfo *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_uptime_all_epochs(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_ServerInfo_hot_restart_version(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_command_line_options(const envoy_admin_v3_ServerInfo *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const envoy_admin_v3_CommandLineOptions* envoy_admin_v3_ServerInfo_command_line_options(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 56), const envoy_admin_v3_CommandLineOptions*); } |
||||
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_node(const envoy_admin_v3_ServerInfo *msg) { return _upb_hasbit(msg, 4); } |
||||
UPB_INLINE const struct envoy_config_core_v3_Node* envoy_admin_v3_ServerInfo_node(const envoy_admin_v3_ServerInfo *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 64), const struct envoy_config_core_v3_Node*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_version(envoy_admin_v3_ServerInfo *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_state(envoy_admin_v3_ServerInfo *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_uptime_current_epoch(envoy_admin_v3_ServerInfo *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_mutable_uptime_current_epoch(envoy_admin_v3_ServerInfo *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_ServerInfo_uptime_current_epoch(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ServerInfo_set_uptime_current_epoch(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_uptime_all_epochs(envoy_admin_v3_ServerInfo *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_mutable_uptime_all_epochs(envoy_admin_v3_ServerInfo *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_ServerInfo_uptime_all_epochs(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ServerInfo_set_uptime_all_epochs(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_hot_restart_version(envoy_admin_v3_ServerInfo *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_command_line_options(envoy_admin_v3_ServerInfo *msg, envoy_admin_v3_CommandLineOptions* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 56), envoy_admin_v3_CommandLineOptions*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_admin_v3_CommandLineOptions* envoy_admin_v3_ServerInfo_mutable_command_line_options(envoy_admin_v3_ServerInfo *msg, upb_arena *arena) { |
||||
struct envoy_admin_v3_CommandLineOptions* sub = (struct envoy_admin_v3_CommandLineOptions*)envoy_admin_v3_ServerInfo_command_line_options(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_admin_v3_CommandLineOptions*)_upb_msg_new(&envoy_admin_v3_CommandLineOptions_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ServerInfo_set_command_line_options(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_ServerInfo_set_node(envoy_admin_v3_ServerInfo *msg, struct envoy_config_core_v3_Node* value) { |
||||
_upb_sethas(msg, 4); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(36, 64), struct envoy_config_core_v3_Node*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_Node* envoy_admin_v3_ServerInfo_mutable_node(envoy_admin_v3_ServerInfo *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_Node* sub = (struct envoy_config_core_v3_Node*)envoy_admin_v3_ServerInfo_node(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_Node*)_upb_msg_new(&envoy_config_core_v3_Node_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_ServerInfo_set_node(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.admin.v3.CommandLineOptions */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_CommandLineOptions *envoy_admin_v3_CommandLineOptions_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_CommandLineOptions *)_upb_msg_new(&envoy_admin_v3_CommandLineOptions_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CommandLineOptions *envoy_admin_v3_CommandLineOptions_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CommandLineOptions *ret = envoy_admin_v3_CommandLineOptions_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_CommandLineOptions_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_CommandLineOptions *envoy_admin_v3_CommandLineOptions_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_CommandLineOptions *ret = envoy_admin_v3_CommandLineOptions_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_CommandLineOptions_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_CommandLineOptions_serialize(const envoy_admin_v3_CommandLineOptions *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_CommandLineOptions_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE uint64_t envoy_admin_v3_CommandLineOptions_base_id(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); } |
||||
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_concurrency(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 28), uint32_t); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_config_path(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(52, 56), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_config_yaml(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 72), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_allow_unknown_static_fields(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), bool); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_admin_address_path(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 88), upb_strview); } |
||||
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_local_address_ip_version(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_log_level(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 104), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_component_log_level(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(84, 120), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_log_format(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(92, 136), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_log_path(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(100, 152), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_service_cluster(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(108, 168), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_service_node(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(116, 184), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_service_zone(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(124, 200), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_file_flush_interval(const envoy_admin_v3_CommandLineOptions *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_file_flush_interval(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(148, 248), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_drain_time(const envoy_admin_v3_CommandLineOptions *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_drain_time(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(152, 256), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_parent_shutdown_time(const envoy_admin_v3_CommandLineOptions *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_parent_shutdown_time(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(156, 264), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_mode(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_disable_hot_restart(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(41, 41), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_mutex_tracing(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(42, 42), bool); } |
||||
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_restart_epoch(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_cpuset_threads(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(43, 43), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_reject_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(44, 44), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_log_format_escaped(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(45, 45), bool); } |
||||
UPB_INLINE upb_strview const* envoy_admin_v3_CommandLineOptions_disabled_extensions(const envoy_admin_v3_CommandLineOptions *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(160, 272), len); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_ignore_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(46, 46), bool); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_use_dynamic_base_id(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(47, 47), bool); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_base_id_path(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(132, 216), upb_strview); } |
||||
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_drain_strategy(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_fine_grain_logging(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); } |
||||
UPB_INLINE upb_strview envoy_admin_v3_CommandLineOptions_socket_path(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(140, 232), upb_strview); } |
||||
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_socket_mode(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 36), uint32_t); } |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_core_dump(const envoy_admin_v3_CommandLineOptions *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(49, 49), bool); } |
||||
UPB_INLINE upb_strview const* envoy_admin_v3_CommandLineOptions_stats_tag(const envoy_admin_v3_CommandLineOptions *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(164, 280), len); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_base_id(envoy_admin_v3_CommandLineOptions *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_concurrency(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(28, 28), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_config_path(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(52, 56), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_config_yaml(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(60, 72), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_allow_unknown_static_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_admin_address_path(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(68, 88), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_local_address_ip_version(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_level(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(76, 104), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_component_log_level(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(84, 120), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_format(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(92, 136), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_path(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(100, 152), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_cluster(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(108, 168), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_node(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(116, 184), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_zone(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(124, 200), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_file_flush_interval(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(148, 248), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_file_flush_interval(envoy_admin_v3_CommandLineOptions *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_file_flush_interval(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CommandLineOptions_set_file_flush_interval(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_drain_time(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(152, 256), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_drain_time(envoy_admin_v3_CommandLineOptions *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_drain_time(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CommandLineOptions_set_drain_time(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_parent_shutdown_time(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(156, 264), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_parent_shutdown_time(envoy_admin_v3_CommandLineOptions *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_parent_shutdown_time(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_CommandLineOptions_set_parent_shutdown_time(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_mode(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_disable_hot_restart(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(41, 41), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_mutex_tracing(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(42, 42), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_restart_epoch(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_cpuset_threads(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(43, 43), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_reject_unknown_dynamic_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(44, 44), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_format_escaped(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(45, 45), bool) = value; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_CommandLineOptions_mutable_disabled_extensions(envoy_admin_v3_CommandLineOptions *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(160, 272), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_CommandLineOptions_resize_disabled_extensions(envoy_admin_v3_CommandLineOptions *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(160, 272), len, UPB_SIZE(3, 4), arena); |
||||
} |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_add_disabled_extensions(envoy_admin_v3_CommandLineOptions *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(160, 272), UPB_SIZE(3, 4), &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_ignore_unknown_dynamic_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(46, 46), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_use_dynamic_base_id(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(47, 47), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_base_id_path(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(132, 216), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_drain_strategy(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_fine_grain_logging(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_socket_path(envoy_admin_v3_CommandLineOptions *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(140, 232), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_socket_mode(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(36, 36), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_core_dump(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(49, 49), bool) = value; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_CommandLineOptions_mutable_stats_tag(envoy_admin_v3_CommandLineOptions *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(164, 280), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_admin_v3_CommandLineOptions_resize_stats_tag(envoy_admin_v3_CommandLineOptions *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(164, 280), len, UPB_SIZE(3, 4), arena); |
||||
} |
||||
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_add_stats_tag(envoy_admin_v3_CommandLineOptions *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(164, 280), UPB_SIZE(3, 4), &val, |
||||
arena); |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_server_info_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_SERVER_INFO_PROTO_UPB_H_ */ |
@ -0,0 +1,46 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/tap.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/admin/v3/tap.upb.h" |
||||
#include "envoy/config/tap/v3/common.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_admin_v3_TapRequest_submsgs[1] = { |
||||
{.submsg = &envoy_config_tap_v3_TapConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_admin_v3_TapRequest__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_admin_v3_TapRequest_msginit = { |
||||
&envoy_admin_v3_TapRequest_submsgs[0], |
||||
&envoy_admin_v3_TapRequest__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_admin_v3_TapRequest_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_admin_v3_tap_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,85 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/admin/v3/tap.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_ADMIN_V3_TAP_PROTO_UPB_H_ |
||||
#define ENVOY_ADMIN_V3_TAP_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 envoy_admin_v3_TapRequest; |
||||
typedef struct envoy_admin_v3_TapRequest envoy_admin_v3_TapRequest; |
||||
extern const upb_msglayout envoy_admin_v3_TapRequest_msginit; |
||||
struct envoy_config_tap_v3_TapConfig; |
||||
extern const upb_msglayout envoy_config_tap_v3_TapConfig_msginit; |
||||
|
||||
|
||||
/* envoy.admin.v3.TapRequest */ |
||||
|
||||
UPB_INLINE envoy_admin_v3_TapRequest *envoy_admin_v3_TapRequest_new(upb_arena *arena) { |
||||
return (envoy_admin_v3_TapRequest *)_upb_msg_new(&envoy_admin_v3_TapRequest_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_admin_v3_TapRequest *envoy_admin_v3_TapRequest_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_TapRequest *ret = envoy_admin_v3_TapRequest_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_admin_v3_TapRequest_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_admin_v3_TapRequest *envoy_admin_v3_TapRequest_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_admin_v3_TapRequest *ret = envoy_admin_v3_TapRequest_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_admin_v3_TapRequest_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_admin_v3_TapRequest_serialize(const envoy_admin_v3_TapRequest *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_admin_v3_TapRequest_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_admin_v3_TapRequest_config_id(const envoy_admin_v3_TapRequest *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_admin_v3_TapRequest_has_tap_config(const envoy_admin_v3_TapRequest *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_tap_v3_TapConfig* envoy_admin_v3_TapRequest_tap_config(const envoy_admin_v3_TapRequest *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_tap_v3_TapConfig*); } |
||||
|
||||
UPB_INLINE void envoy_admin_v3_TapRequest_set_config_id(envoy_admin_v3_TapRequest *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_admin_v3_TapRequest_set_tap_config(envoy_admin_v3_TapRequest *msg, struct envoy_config_tap_v3_TapConfig* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_tap_v3_TapConfig*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_TapConfig* envoy_admin_v3_TapRequest_mutable_tap_config(envoy_admin_v3_TapRequest *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_TapConfig* sub = (struct envoy_config_tap_v3_TapConfig*)envoy_admin_v3_TapRequest_tap_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_TapConfig*)_upb_msg_new(&envoy_config_tap_v3_TapConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_admin_v3_TapRequest_set_tap_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_admin_v3_tap_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_ADMIN_V3_TAP_PROTO_UPB_H_ */ |
@ -0,0 +1,288 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/common/matcher/v3/matcher.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/common/matcher/v3/matcher.upb.h" |
||||
#include "envoy/config/core/v3/extension.upb.h" |
||||
#include "envoy/config/route/v3/route_components.upb.h" |
||||
#include "envoy/type/matcher/v3/string.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_submsgs[3] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherTree_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher__fields[3] = { |
||||
{1, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(4, 8), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher__fields[0], |
||||
UPB_SIZE(16, 32), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_OnMatch_submsgs[2] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_msginit}, |
||||
{.submsg = &envoy_config_core_v3_TypedExtensionConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_OnMatch__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_OnMatch_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_OnMatch_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_OnMatch__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherList_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherList__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherList_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_submsgs[3] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate__fields[4] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate__fields[0], |
||||
UPB_SIZE(8, 16), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_submsgs[2] = { |
||||
{.submsg = &envoy_config_core_v3_TypedExtensionConfig_msginit}, |
||||
{.submsg = &envoy_type_matcher_v3_StringMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate__fields[3] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate__fields[0], |
||||
UPB_SIZE(16, 32), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_submsgs[2] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 2, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherTree_submsgs[2] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_msginit}, |
||||
{.submsg = &envoy_config_core_v3_TypedExtensionConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherTree__fields[4] = { |
||||
{1, UPB_SIZE(4, 8), 1, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherTree_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree__fields[0], |
||||
UPB_SIZE(16, 32), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_MAP | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_msginit = { |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_submsgs[0], |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_MatchPredicate_submsgs[4] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_HttpGenericBodyMatch_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_HttpHeadersMatch_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_MatchPredicate_msginit}, |
||||
{.submsg = &envoy_config_common_matcher_v3_MatchPredicate_MatchSet_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_MatchPredicate__fields[10] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_MatchPredicate_msginit = { |
||||
&envoy_config_common_matcher_v3_MatchPredicate_submsgs[0], |
||||
&envoy_config_common_matcher_v3_MatchPredicate__fields[0], |
||||
UPB_SIZE(8, 16), 10, _UPB_MSGEXT_NONE, 10, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_MatchPredicate_MatchSet_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_MatchPredicate_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_MatchPredicate_MatchSet__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_MatchPredicate_MatchSet_msginit = { |
||||
&envoy_config_common_matcher_v3_MatchPredicate_MatchSet_submsgs[0], |
||||
&envoy_config_common_matcher_v3_MatchPredicate_MatchSet__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_HttpHeadersMatch_submsgs[1] = { |
||||
{.submsg = &envoy_config_route_v3_HeaderMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_HttpHeadersMatch__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_HttpHeadersMatch_msginit = { |
||||
&envoy_config_common_matcher_v3_HttpHeadersMatch_submsgs[0], |
||||
&envoy_config_common_matcher_v3_HttpHeadersMatch__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_common_matcher_v3_HttpGenericBodyMatch_submsgs[1] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_HttpGenericBodyMatch_GenericTextMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_HttpGenericBodyMatch__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_HttpGenericBodyMatch_msginit = { |
||||
&envoy_config_common_matcher_v3_HttpGenericBodyMatch_submsgs[0], |
||||
&envoy_config_common_matcher_v3_HttpGenericBodyMatch__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_common_matcher_v3_HttpGenericBodyMatch_GenericTextMatch__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 12, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_common_matcher_v3_HttpGenericBodyMatch_GenericTextMatch_msginit = { |
||||
NULL, |
||||
&envoy_config_common_matcher_v3_HttpGenericBodyMatch_GenericTextMatch__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[15] = { |
||||
&envoy_config_common_matcher_v3_Matcher_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_OnMatch_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_msginit, |
||||
&envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_msginit, |
||||
&envoy_config_common_matcher_v3_MatchPredicate_msginit, |
||||
&envoy_config_common_matcher_v3_MatchPredicate_MatchSet_msginit, |
||||
&envoy_config_common_matcher_v3_HttpHeadersMatch_msginit, |
||||
&envoy_config_common_matcher_v3_HttpGenericBodyMatch_msginit, |
||||
&envoy_config_common_matcher_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_common_matcher_v3_matcher_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
15, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,56 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/core/v3/grpc_method_list.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/core/v3/grpc_method_list.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_core_v3_GrpcMethodList_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcMethodList_Service_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_core_v3_GrpcMethodList__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_core_v3_GrpcMethodList_msginit = { |
||||
&envoy_config_core_v3_GrpcMethodList_submsgs[0], |
||||
&envoy_config_core_v3_GrpcMethodList__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_core_v3_GrpcMethodList_Service__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_core_v3_GrpcMethodList_Service_msginit = { |
||||
NULL, |
||||
&envoy_config_core_v3_GrpcMethodList_Service__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_config_core_v3_GrpcMethodList_msginit, |
||||
&envoy_config_core_v3_GrpcMethodList_Service_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_core_v3_grpc_method_list_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,125 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/core/v3/grpc_method_list.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_CORE_V3_GRPC_METHOD_LIST_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_CORE_V3_GRPC_METHOD_LIST_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 envoy_config_core_v3_GrpcMethodList; |
||||
struct envoy_config_core_v3_GrpcMethodList_Service; |
||||
typedef struct envoy_config_core_v3_GrpcMethodList envoy_config_core_v3_GrpcMethodList; |
||||
typedef struct envoy_config_core_v3_GrpcMethodList_Service envoy_config_core_v3_GrpcMethodList_Service; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcMethodList_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcMethodList_Service_msginit; |
||||
|
||||
|
||||
/* envoy.config.core.v3.GrpcMethodList */ |
||||
|
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList *envoy_config_core_v3_GrpcMethodList_new(upb_arena *arena) { |
||||
return (envoy_config_core_v3_GrpcMethodList *)_upb_msg_new(&envoy_config_core_v3_GrpcMethodList_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList *envoy_config_core_v3_GrpcMethodList_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_core_v3_GrpcMethodList *ret = envoy_config_core_v3_GrpcMethodList_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_core_v3_GrpcMethodList_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList *envoy_config_core_v3_GrpcMethodList_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_core_v3_GrpcMethodList *ret = envoy_config_core_v3_GrpcMethodList_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_core_v3_GrpcMethodList_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_core_v3_GrpcMethodList_serialize(const envoy_config_core_v3_GrpcMethodList *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_core_v3_GrpcMethodList_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_core_v3_GrpcMethodList_has_services(const envoy_config_core_v3_GrpcMethodList *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_config_core_v3_GrpcMethodList_Service* const* envoy_config_core_v3_GrpcMethodList_services(const envoy_config_core_v3_GrpcMethodList *msg, size_t *len) { return (const envoy_config_core_v3_GrpcMethodList_Service* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList_Service** envoy_config_core_v3_GrpcMethodList_mutable_services(envoy_config_core_v3_GrpcMethodList *msg, size_t *len) { |
||||
return (envoy_config_core_v3_GrpcMethodList_Service**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList_Service** envoy_config_core_v3_GrpcMethodList_resize_services(envoy_config_core_v3_GrpcMethodList *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_config_core_v3_GrpcMethodList_Service**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcMethodList_Service* envoy_config_core_v3_GrpcMethodList_add_services(envoy_config_core_v3_GrpcMethodList *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcMethodList_Service* sub = (struct envoy_config_core_v3_GrpcMethodList_Service*)_upb_msg_new(&envoy_config_core_v3_GrpcMethodList_Service_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; |
||||
} |
||||
|
||||
/* envoy.config.core.v3.GrpcMethodList.Service */ |
||||
|
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList_Service *envoy_config_core_v3_GrpcMethodList_Service_new(upb_arena *arena) { |
||||
return (envoy_config_core_v3_GrpcMethodList_Service *)_upb_msg_new(&envoy_config_core_v3_GrpcMethodList_Service_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList_Service *envoy_config_core_v3_GrpcMethodList_Service_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_core_v3_GrpcMethodList_Service *ret = envoy_config_core_v3_GrpcMethodList_Service_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_core_v3_GrpcMethodList_Service_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_core_v3_GrpcMethodList_Service *envoy_config_core_v3_GrpcMethodList_Service_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_core_v3_GrpcMethodList_Service *ret = envoy_config_core_v3_GrpcMethodList_Service_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_core_v3_GrpcMethodList_Service_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_core_v3_GrpcMethodList_Service_serialize(const envoy_config_core_v3_GrpcMethodList_Service *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_core_v3_GrpcMethodList_Service_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_core_v3_GrpcMethodList_Service_name(const envoy_config_core_v3_GrpcMethodList_Service *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE upb_strview const* envoy_config_core_v3_GrpcMethodList_Service_method_names(const envoy_config_core_v3_GrpcMethodList_Service *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); } |
||||
|
||||
UPB_INLINE void envoy_config_core_v3_GrpcMethodList_Service_set_name(envoy_config_core_v3_GrpcMethodList_Service *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE upb_strview* envoy_config_core_v3_GrpcMethodList_Service_mutable_method_names(envoy_config_core_v3_GrpcMethodList_Service *msg, size_t *len) { |
||||
return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len); |
||||
} |
||||
UPB_INLINE upb_strview* envoy_config_core_v3_GrpcMethodList_Service_resize_method_names(envoy_config_core_v3_GrpcMethodList_Service *msg, size_t len, upb_arena *arena) { |
||||
return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(3, 4), arena); |
||||
} |
||||
UPB_INLINE bool envoy_config_core_v3_GrpcMethodList_Service_add_method_names(envoy_config_core_v3_GrpcMethodList_Service *msg, upb_strview val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(3, 4), &val, |
||||
arena); |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_core_v3_grpc_method_list_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_CORE_V3_GRPC_METHOD_LIST_PROTO_UPB_H_ */ |
@ -0,0 +1,51 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/metrics/v3/metrics_service.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/metrics/v3/metrics_service.upb.h" |
||||
#include "envoy/config/core/v3/config_source.upb.h" |
||||
#include "envoy/config/core/v3/grpc_service.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_metrics_v3_MetricsServiceConfig_submsgs[2] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcService_msginit}, |
||||
{.submsg = &google_protobuf_BoolValue_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_metrics_v3_MetricsServiceConfig__fields[4] = { |
||||
{1, UPB_SIZE(12, 16), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(16, 24), 2, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(4, 4), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(8, 8), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_metrics_v3_MetricsServiceConfig_msginit = { |
||||
&envoy_config_metrics_v3_MetricsServiceConfig_submsgs[0], |
||||
&envoy_config_metrics_v3_MetricsServiceConfig__fields[0], |
||||
UPB_SIZE(24, 32), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_metrics_v3_MetricsServiceConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_metrics_v3_metrics_service_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,106 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/metrics/v3/metrics_service.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_METRICS_V3_METRICS_SERVICE_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_METRICS_V3_METRICS_SERVICE_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 envoy_config_metrics_v3_MetricsServiceConfig; |
||||
typedef struct envoy_config_metrics_v3_MetricsServiceConfig envoy_config_metrics_v3_MetricsServiceConfig; |
||||
extern const upb_msglayout envoy_config_metrics_v3_MetricsServiceConfig_msginit; |
||||
struct envoy_config_core_v3_GrpcService; |
||||
struct google_protobuf_BoolValue; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcService_msginit; |
||||
extern const upb_msglayout google_protobuf_BoolValue_msginit; |
||||
|
||||
|
||||
/* envoy.config.metrics.v3.MetricsServiceConfig */ |
||||
|
||||
UPB_INLINE envoy_config_metrics_v3_MetricsServiceConfig *envoy_config_metrics_v3_MetricsServiceConfig_new(upb_arena *arena) { |
||||
return (envoy_config_metrics_v3_MetricsServiceConfig *)_upb_msg_new(&envoy_config_metrics_v3_MetricsServiceConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_metrics_v3_MetricsServiceConfig *envoy_config_metrics_v3_MetricsServiceConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_metrics_v3_MetricsServiceConfig *ret = envoy_config_metrics_v3_MetricsServiceConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_metrics_v3_MetricsServiceConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_metrics_v3_MetricsServiceConfig *envoy_config_metrics_v3_MetricsServiceConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_metrics_v3_MetricsServiceConfig *ret = envoy_config_metrics_v3_MetricsServiceConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_metrics_v3_MetricsServiceConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_metrics_v3_MetricsServiceConfig_serialize(const envoy_config_metrics_v3_MetricsServiceConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_metrics_v3_MetricsServiceConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_metrics_v3_MetricsServiceConfig_has_grpc_service(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_metrics_v3_MetricsServiceConfig_grpc_service(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct envoy_config_core_v3_GrpcService*); } |
||||
UPB_INLINE bool envoy_config_metrics_v3_MetricsServiceConfig_has_report_counters_as_deltas(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_metrics_v3_MetricsServiceConfig_report_counters_as_deltas(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE int32_t envoy_config_metrics_v3_MetricsServiceConfig_transport_api_version(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); } |
||||
UPB_INLINE bool envoy_config_metrics_v3_MetricsServiceConfig_emit_tags_as_labels(const envoy_config_metrics_v3_MetricsServiceConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); } |
||||
|
||||
UPB_INLINE void envoy_config_metrics_v3_MetricsServiceConfig_set_grpc_service(envoy_config_metrics_v3_MetricsServiceConfig *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_metrics_v3_MetricsServiceConfig_mutable_grpc_service(envoy_config_metrics_v3_MetricsServiceConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_metrics_v3_MetricsServiceConfig_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_metrics_v3_MetricsServiceConfig_set_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_metrics_v3_MetricsServiceConfig_set_report_counters_as_deltas(envoy_config_metrics_v3_MetricsServiceConfig *msg, struct google_protobuf_BoolValue* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_config_metrics_v3_MetricsServiceConfig_mutable_report_counters_as_deltas(envoy_config_metrics_v3_MetricsServiceConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_metrics_v3_MetricsServiceConfig_report_counters_as_deltas(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_metrics_v3_MetricsServiceConfig_set_report_counters_as_deltas(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_metrics_v3_MetricsServiceConfig_set_transport_api_version(envoy_config_metrics_v3_MetricsServiceConfig *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_metrics_v3_MetricsServiceConfig_set_emit_tags_as_labels(envoy_config_metrics_v3_MetricsServiceConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_metrics_v3_metrics_service_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_METRICS_V3_METRICS_SERVICE_PROTO_UPB_H_ */ |
@ -0,0 +1,214 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/tap/v3/common.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/tap/v3/common.upb.h" |
||||
#include "envoy/config/common/matcher/v3/matcher.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "envoy/config/core/v3/grpc_service.upb.h" |
||||
#include "envoy/config/route/v3/route_components.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "envoy/annotations/deprecation.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_TapConfig_submsgs[4] = { |
||||
{.submsg = &envoy_config_common_matcher_v3_MatchPredicate_msginit}, |
||||
{.submsg = &envoy_config_core_v3_RuntimeFractionalPercent_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_MatchPredicate_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_OutputConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_TapConfig__fields[4] = { |
||||
{1, UPB_SIZE(4, 8), 1, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 2, 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(12, 24), 3, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(16, 32), 4, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_TapConfig_msginit = { |
||||
&envoy_config_tap_v3_TapConfig_submsgs[0], |
||||
&envoy_config_tap_v3_TapConfig__fields[0], |
||||
UPB_SIZE(24, 40), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_MatchPredicate_submsgs[4] = { |
||||
{.submsg = &envoy_config_tap_v3_HttpGenericBodyMatch_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_HttpHeadersMatch_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_MatchPredicate_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_MatchPredicate__fields[10] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_MatchPredicate_msginit = { |
||||
&envoy_config_tap_v3_MatchPredicate_submsgs[0], |
||||
&envoy_config_tap_v3_MatchPredicate__fields[0], |
||||
UPB_SIZE(8, 16), 10, _UPB_MSGEXT_NONE, 10, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_MatchPredicate_MatchSet_submsgs[1] = { |
||||
{.submsg = &envoy_config_tap_v3_MatchPredicate_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_MatchPredicate_MatchSet__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_MatchPredicate_MatchSet_msginit = { |
||||
&envoy_config_tap_v3_MatchPredicate_MatchSet_submsgs[0], |
||||
&envoy_config_tap_v3_MatchPredicate_MatchSet__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_HttpHeadersMatch_submsgs[1] = { |
||||
{.submsg = &envoy_config_route_v3_HeaderMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_HttpHeadersMatch__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_HttpHeadersMatch_msginit = { |
||||
&envoy_config_tap_v3_HttpHeadersMatch_submsgs[0], |
||||
&envoy_config_tap_v3_HttpHeadersMatch__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_HttpGenericBodyMatch_submsgs[1] = { |
||||
{.submsg = &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_HttpGenericBodyMatch__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_HttpGenericBodyMatch_msginit = { |
||||
&envoy_config_tap_v3_HttpGenericBodyMatch_submsgs[0], |
||||
&envoy_config_tap_v3_HttpGenericBodyMatch__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 12, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit = { |
||||
NULL, |
||||
&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_OutputConfig_submsgs[2] = { |
||||
{.submsg = &envoy_config_tap_v3_OutputSink_msginit}, |
||||
{.submsg = &google_protobuf_UInt32Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_OutputConfig__fields[4] = { |
||||
{1, UPB_SIZE(12, 24), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 1, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(8, 16), 2, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(1, 1), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_OutputConfig_msginit = { |
||||
&envoy_config_tap_v3_OutputConfig_submsgs[0], |
||||
&envoy_config_tap_v3_OutputConfig__fields[0], |
||||
UPB_SIZE(16, 32), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_OutputSink_submsgs[3] = { |
||||
{.submsg = &envoy_config_tap_v3_FilePerTapSink_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_StreamingAdminSink_msginit}, |
||||
{.submsg = &envoy_config_tap_v3_StreamingGrpcSink_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_OutputSink__fields[4] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), UPB_SIZE(-9, -17), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(4, 8), UPB_SIZE(-9, -17), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(4, 8), UPB_SIZE(-9, -17), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_OutputSink_msginit = { |
||||
&envoy_config_tap_v3_OutputSink_submsgs[0], |
||||
&envoy_config_tap_v3_OutputSink__fields[0], |
||||
UPB_SIZE(16, 24), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_StreamingAdminSink_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_FilePerTapSink__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_FilePerTapSink_msginit = { |
||||
NULL, |
||||
&envoy_config_tap_v3_FilePerTapSink__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_tap_v3_StreamingGrpcSink_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcService_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_tap_v3_StreamingGrpcSink__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_tap_v3_StreamingGrpcSink_msginit = { |
||||
&envoy_config_tap_v3_StreamingGrpcSink_submsgs[0], |
||||
&envoy_config_tap_v3_StreamingGrpcSink__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[11] = { |
||||
&envoy_config_tap_v3_TapConfig_msginit, |
||||
&envoy_config_tap_v3_MatchPredicate_msginit, |
||||
&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, |
||||
&envoy_config_tap_v3_HttpHeadersMatch_msginit, |
||||
&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, |
||||
&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, |
||||
&envoy_config_tap_v3_OutputConfig_msginit, |
||||
&envoy_config_tap_v3_OutputSink_msginit, |
||||
&envoy_config_tap_v3_StreamingAdminSink_msginit, |
||||
&envoy_config_tap_v3_FilePerTapSink_msginit, |
||||
&envoy_config_tap_v3_StreamingGrpcSink_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_tap_v3_common_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
11, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,790 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/tap/v3/common.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TAP_V3_COMMON_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TAP_V3_COMMON_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 envoy_config_tap_v3_TapConfig; |
||||
struct envoy_config_tap_v3_MatchPredicate; |
||||
struct envoy_config_tap_v3_MatchPredicate_MatchSet; |
||||
struct envoy_config_tap_v3_HttpHeadersMatch; |
||||
struct envoy_config_tap_v3_HttpGenericBodyMatch; |
||||
struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch; |
||||
struct envoy_config_tap_v3_OutputConfig; |
||||
struct envoy_config_tap_v3_OutputSink; |
||||
struct envoy_config_tap_v3_StreamingAdminSink; |
||||
struct envoy_config_tap_v3_FilePerTapSink; |
||||
struct envoy_config_tap_v3_StreamingGrpcSink; |
||||
typedef struct envoy_config_tap_v3_TapConfig envoy_config_tap_v3_TapConfig; |
||||
typedef struct envoy_config_tap_v3_MatchPredicate envoy_config_tap_v3_MatchPredicate; |
||||
typedef struct envoy_config_tap_v3_MatchPredicate_MatchSet envoy_config_tap_v3_MatchPredicate_MatchSet; |
||||
typedef struct envoy_config_tap_v3_HttpHeadersMatch envoy_config_tap_v3_HttpHeadersMatch; |
||||
typedef struct envoy_config_tap_v3_HttpGenericBodyMatch envoy_config_tap_v3_HttpGenericBodyMatch; |
||||
typedef struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch; |
||||
typedef struct envoy_config_tap_v3_OutputConfig envoy_config_tap_v3_OutputConfig; |
||||
typedef struct envoy_config_tap_v3_OutputSink envoy_config_tap_v3_OutputSink; |
||||
typedef struct envoy_config_tap_v3_StreamingAdminSink envoy_config_tap_v3_StreamingAdminSink; |
||||
typedef struct envoy_config_tap_v3_FilePerTapSink envoy_config_tap_v3_FilePerTapSink; |
||||
typedef struct envoy_config_tap_v3_StreamingGrpcSink envoy_config_tap_v3_StreamingGrpcSink; |
||||
extern const upb_msglayout envoy_config_tap_v3_TapConfig_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_MatchPredicate_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_MatchPredicate_MatchSet_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_HttpHeadersMatch_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_HttpGenericBodyMatch_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_OutputConfig_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_OutputSink_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_StreamingAdminSink_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_FilePerTapSink_msginit; |
||||
extern const upb_msglayout envoy_config_tap_v3_StreamingGrpcSink_msginit; |
||||
struct envoy_config_common_matcher_v3_MatchPredicate; |
||||
struct envoy_config_core_v3_GrpcService; |
||||
struct envoy_config_core_v3_RuntimeFractionalPercent; |
||||
struct envoy_config_route_v3_HeaderMatcher; |
||||
struct google_protobuf_UInt32Value; |
||||
extern const upb_msglayout envoy_config_common_matcher_v3_MatchPredicate_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcService_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_RuntimeFractionalPercent_msginit; |
||||
extern const upb_msglayout envoy_config_route_v3_HeaderMatcher_msginit; |
||||
extern const upb_msglayout google_protobuf_UInt32Value_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_config_tap_v3_OutputSink_JSON_BODY_AS_BYTES = 0, |
||||
envoy_config_tap_v3_OutputSink_JSON_BODY_AS_STRING = 1, |
||||
envoy_config_tap_v3_OutputSink_PROTO_BINARY = 2, |
||||
envoy_config_tap_v3_OutputSink_PROTO_BINARY_LENGTH_DELIMITED = 3, |
||||
envoy_config_tap_v3_OutputSink_PROTO_TEXT = 4 |
||||
} envoy_config_tap_v3_OutputSink_Format; |
||||
|
||||
|
||||
/* envoy.config.tap.v3.TapConfig */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_TapConfig *envoy_config_tap_v3_TapConfig_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_TapConfig *)_upb_msg_new(&envoy_config_tap_v3_TapConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_TapConfig *envoy_config_tap_v3_TapConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_TapConfig *ret = envoy_config_tap_v3_TapConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_TapConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_TapConfig *envoy_config_tap_v3_TapConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_TapConfig *ret = envoy_config_tap_v3_TapConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_TapConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_TapConfig_serialize(const envoy_config_tap_v3_TapConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_TapConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_match_config(const envoy_config_tap_v3_TapConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_match_config(const envoy_config_tap_v3_TapConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const envoy_config_tap_v3_MatchPredicate*); } |
||||
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_output_config(const envoy_config_tap_v3_TapConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_TapConfig_output_config(const envoy_config_tap_v3_TapConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_tap_v3_OutputConfig*); } |
||||
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_tap_enabled(const envoy_config_tap_v3_TapConfig *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_tap_v3_TapConfig_tap_enabled(const envoy_config_tap_v3_TapConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_RuntimeFractionalPercent*); } |
||||
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_match(const envoy_config_tap_v3_TapConfig *msg) { return _upb_hasbit(msg, 4); } |
||||
UPB_INLINE const struct envoy_config_common_matcher_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_match(const envoy_config_tap_v3_TapConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_common_matcher_v3_MatchPredicate*); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_match_config(envoy_config_tap_v3_TapConfig *msg, envoy_config_tap_v3_MatchPredicate* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), envoy_config_tap_v3_MatchPredicate*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_mutable_match_config(envoy_config_tap_v3_TapConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)envoy_config_tap_v3_TapConfig_match_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_TapConfig_set_match_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_output_config(envoy_config_tap_v3_TapConfig *msg, envoy_config_tap_v3_OutputConfig* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_tap_v3_OutputConfig*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_TapConfig_mutable_output_config(envoy_config_tap_v3_TapConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_OutputConfig* sub = (struct envoy_config_tap_v3_OutputConfig*)envoy_config_tap_v3_TapConfig_output_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_OutputConfig*)_upb_msg_new(&envoy_config_tap_v3_OutputConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_TapConfig_set_output_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_tap_enabled(envoy_config_tap_v3_TapConfig *msg, struct envoy_config_core_v3_RuntimeFractionalPercent* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_RuntimeFractionalPercent*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_tap_v3_TapConfig_mutable_tap_enabled(envoy_config_tap_v3_TapConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_RuntimeFractionalPercent* sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)envoy_config_tap_v3_TapConfig_tap_enabled(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)_upb_msg_new(&envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_TapConfig_set_tap_enabled(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_match(envoy_config_tap_v3_TapConfig *msg, struct envoy_config_common_matcher_v3_MatchPredicate* value) { |
||||
_upb_sethas(msg, 4); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_common_matcher_v3_MatchPredicate*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_common_matcher_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_mutable_match(envoy_config_tap_v3_TapConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_common_matcher_v3_MatchPredicate* sub = (struct envoy_config_common_matcher_v3_MatchPredicate*)envoy_config_tap_v3_TapConfig_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_common_matcher_v3_MatchPredicate*)_upb_msg_new(&envoy_config_common_matcher_v3_MatchPredicate_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_TapConfig_set_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.MatchPredicate */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate *envoy_config_tap_v3_MatchPredicate_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_MatchPredicate *)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate *envoy_config_tap_v3_MatchPredicate_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_MatchPredicate *ret = envoy_config_tap_v3_MatchPredicate_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate *envoy_config_tap_v3_MatchPredicate_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_MatchPredicate *ret = envoy_config_tap_v3_MatchPredicate_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_MatchPredicate_serialize(const envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_MatchPredicate_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_config_tap_v3_MatchPredicate_rule_or_match = 1, |
||||
envoy_config_tap_v3_MatchPredicate_rule_and_match = 2, |
||||
envoy_config_tap_v3_MatchPredicate_rule_not_match = 3, |
||||
envoy_config_tap_v3_MatchPredicate_rule_any_match = 4, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_request_headers_match = 5, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_request_trailers_match = 6, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_response_headers_match = 7, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_response_trailers_match = 8, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_request_generic_body_match = 9, |
||||
envoy_config_tap_v3_MatchPredicate_rule_http_response_generic_body_match = 10, |
||||
envoy_config_tap_v3_MatchPredicate_rule_NOT_SET = 0 |
||||
} envoy_config_tap_v3_MatchPredicate_rule_oneofcases; |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate_rule_oneofcases envoy_config_tap_v3_MatchPredicate_rule_case(const envoy_config_tap_v3_MatchPredicate* msg) { return (envoy_config_tap_v3_MatchPredicate_rule_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_or_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; } |
||||
UPB_INLINE const envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_or_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_and_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; } |
||||
UPB_INLINE const envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_and_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_not_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 3; } |
||||
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_not_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 3, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_any_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 4; } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_any_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 4, false); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_headers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 5; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_request_headers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 5, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_trailers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 6; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_request_trailers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 6, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_headers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 7; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_response_headers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 7, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_trailers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 8; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_response_trailers_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 8, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_generic_body_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 9; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_http_request_generic_body_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 9, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_generic_body_match(const envoy_config_tap_v3_MatchPredicate *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 10; } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_http_response_generic_body_match(const envoy_config_tap_v3_MatchPredicate *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 10, NULL); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_or_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate_MatchSet* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_mutable_or_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_MatchPredicate_MatchSet* sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)envoy_config_tap_v3_MatchPredicate_or_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_or_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_and_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate_MatchSet* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_mutable_and_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_MatchPredicate_MatchSet* sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)envoy_config_tap_v3_MatchPredicate_and_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_and_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_not_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 3); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_mutable_not_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)envoy_config_tap_v3_MatchPredicate_not_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_not_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_any_match(envoy_config_tap_v3_MatchPredicate *msg, bool value) { |
||||
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 4); |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_headers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 5); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_headers_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_request_headers_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_request_headers_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 6); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_request_trailers_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_request_trailers_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_headers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 7); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_headers_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_response_headers_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_response_headers_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 8); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_response_trailers_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_response_trailers_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpGenericBodyMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 9); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpGenericBodyMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)envoy_config_tap_v3_MatchPredicate_http_request_generic_body_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_request_generic_body_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpGenericBodyMatch* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 10); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpGenericBodyMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)envoy_config_tap_v3_MatchPredicate_http_response_generic_body_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_MatchPredicate_set_http_response_generic_body_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.MatchPredicate.MatchSet */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet *envoy_config_tap_v3_MatchPredicate_MatchSet_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_MatchPredicate_MatchSet *)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet *envoy_config_tap_v3_MatchPredicate_MatchSet_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_MatchPredicate_MatchSet *ret = envoy_config_tap_v3_MatchPredicate_MatchSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet *envoy_config_tap_v3_MatchPredicate_MatchSet_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_MatchPredicate_MatchSet *ret = envoy_config_tap_v3_MatchPredicate_MatchSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_MatchPredicate_MatchSet_serialize(const envoy_config_tap_v3_MatchPredicate_MatchSet *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_MatchSet_has_rules(const envoy_config_tap_v3_MatchPredicate_MatchSet *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* const* envoy_config_tap_v3_MatchPredicate_MatchSet_rules(const envoy_config_tap_v3_MatchPredicate_MatchSet *msg, size_t *len) { return (const envoy_config_tap_v3_MatchPredicate* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate** envoy_config_tap_v3_MatchPredicate_MatchSet_mutable_rules(envoy_config_tap_v3_MatchPredicate_MatchSet *msg, size_t *len) { |
||||
return (envoy_config_tap_v3_MatchPredicate**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_MatchPredicate** envoy_config_tap_v3_MatchPredicate_MatchSet_resize_rules(envoy_config_tap_v3_MatchPredicate_MatchSet *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_config_tap_v3_MatchPredicate**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_MatchSet_add_rules(envoy_config_tap_v3_MatchPredicate_MatchSet *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_msg_new(&envoy_config_tap_v3_MatchPredicate_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; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.HttpHeadersMatch */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch *envoy_config_tap_v3_HttpHeadersMatch_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_HttpHeadersMatch *)_upb_msg_new(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch *envoy_config_tap_v3_HttpHeadersMatch_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpHeadersMatch *ret = envoy_config_tap_v3_HttpHeadersMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpHeadersMatch_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch *envoy_config_tap_v3_HttpHeadersMatch_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpHeadersMatch *ret = envoy_config_tap_v3_HttpHeadersMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpHeadersMatch_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_HttpHeadersMatch_serialize(const envoy_config_tap_v3_HttpHeadersMatch *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_HttpHeadersMatch_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_HttpHeadersMatch_has_headers(const envoy_config_tap_v3_HttpHeadersMatch *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct envoy_config_route_v3_HeaderMatcher* const* envoy_config_tap_v3_HttpHeadersMatch_headers(const envoy_config_tap_v3_HttpHeadersMatch *msg, size_t *len) { return (const struct envoy_config_route_v3_HeaderMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher** envoy_config_tap_v3_HttpHeadersMatch_mutable_headers(envoy_config_tap_v3_HttpHeadersMatch *msg, size_t *len) { |
||||
return (struct envoy_config_route_v3_HeaderMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher** envoy_config_tap_v3_HttpHeadersMatch_resize_headers(envoy_config_tap_v3_HttpHeadersMatch *msg, size_t len, upb_arena *arena) { |
||||
return (struct envoy_config_route_v3_HeaderMatcher**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher* envoy_config_tap_v3_HttpHeadersMatch_add_headers(envoy_config_tap_v3_HttpHeadersMatch *msg, upb_arena *arena) { |
||||
struct envoy_config_route_v3_HeaderMatcher* sub = (struct envoy_config_route_v3_HeaderMatcher*)_upb_msg_new(&envoy_config_route_v3_HeaderMatcher_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; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.HttpGenericBodyMatch */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch *envoy_config_tap_v3_HttpGenericBodyMatch_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_HttpGenericBodyMatch *)_upb_msg_new(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch *envoy_config_tap_v3_HttpGenericBodyMatch_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpGenericBodyMatch *ret = envoy_config_tap_v3_HttpGenericBodyMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch *envoy_config_tap_v3_HttpGenericBodyMatch_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpGenericBodyMatch *ret = envoy_config_tap_v3_HttpGenericBodyMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_HttpGenericBodyMatch_serialize(const envoy_config_tap_v3_HttpGenericBodyMatch *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE uint32_t envoy_config_tap_v3_HttpGenericBodyMatch_bytes_limit(const envoy_config_tap_v3_HttpGenericBodyMatch *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); } |
||||
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_has_patterns(const envoy_config_tap_v3_HttpGenericBodyMatch *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* const* envoy_config_tap_v3_HttpGenericBodyMatch_patterns(const envoy_config_tap_v3_HttpGenericBodyMatch *msg, size_t *len) { return (const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_set_bytes_limit(envoy_config_tap_v3_HttpGenericBodyMatch *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch** envoy_config_tap_v3_HttpGenericBodyMatch_mutable_patterns(envoy_config_tap_v3_HttpGenericBodyMatch *msg, size_t *len) { |
||||
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch** envoy_config_tap_v3_HttpGenericBodyMatch_resize_patterns(envoy_config_tap_v3_HttpGenericBodyMatch *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch**)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* envoy_config_tap_v3_HttpGenericBodyMatch_add_patterns(envoy_config_tap_v3_HttpGenericBodyMatch *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch*)_upb_msg_new(&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_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; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *)_upb_msg_new(&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *ret = envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *ret = envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_serialize(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_string_match = 1, |
||||
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_binary_match = 2, |
||||
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_NOT_SET = 0 |
||||
} envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases; |
||||
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_case(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_has_string_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 1; } |
||||
UPB_INLINE upb_strview envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_string_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 1, upb_strview_make("", strlen(""))); } |
||||
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_has_binary_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; } |
||||
UPB_INLINE upb_strview envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_binary_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), UPB_SIZE(8, 16), 2, upb_strview_make("", strlen(""))); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_set_string_match(envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1); |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_set_binary_match(envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 2); |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.OutputConfig */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_OutputConfig *envoy_config_tap_v3_OutputConfig_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_OutputConfig *)_upb_msg_new(&envoy_config_tap_v3_OutputConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_OutputConfig *envoy_config_tap_v3_OutputConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_OutputConfig *ret = envoy_config_tap_v3_OutputConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_OutputConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_OutputConfig *envoy_config_tap_v3_OutputConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_OutputConfig *ret = envoy_config_tap_v3_OutputConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_OutputConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_OutputConfig_serialize(const envoy_config_tap_v3_OutputConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_OutputConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_sinks(const envoy_config_tap_v3_OutputConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); } |
||||
UPB_INLINE const envoy_config_tap_v3_OutputSink* const* envoy_config_tap_v3_OutputConfig_sinks(const envoy_config_tap_v3_OutputConfig *msg, size_t *len) { return (const envoy_config_tap_v3_OutputSink* const*)_upb_array_accessor(msg, UPB_SIZE(12, 24), len); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_max_buffered_rx_bytes(const envoy_config_tap_v3_OutputConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_max_buffered_rx_bytes(const envoy_config_tap_v3_OutputConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_UInt32Value*); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_max_buffered_tx_bytes(const envoy_config_tap_v3_OutputConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_max_buffered_tx_bytes(const envoy_config_tap_v3_OutputConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_UInt32Value*); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_streaming(const envoy_config_tap_v3_OutputConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); } |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_OutputSink** envoy_config_tap_v3_OutputConfig_mutable_sinks(envoy_config_tap_v3_OutputConfig *msg, size_t *len) { |
||||
return (envoy_config_tap_v3_OutputSink**)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_OutputSink** envoy_config_tap_v3_OutputConfig_resize_sinks(envoy_config_tap_v3_OutputConfig *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_config_tap_v3_OutputSink**)_upb_array_resize_accessor2(msg, UPB_SIZE(12, 24), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_OutputSink* envoy_config_tap_v3_OutputConfig_add_sinks(envoy_config_tap_v3_OutputConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_OutputSink* sub = (struct envoy_config_tap_v3_OutputSink*)_upb_msg_new(&envoy_config_tap_v3_OutputSink_msginit, arena); |
||||
bool ok = _upb_array_append_accessor2( |
||||
msg, UPB_SIZE(12, 24), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_max_buffered_rx_bytes(envoy_config_tap_v3_OutputConfig *msg, struct google_protobuf_UInt32Value* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_mutable_max_buffered_rx_bytes(envoy_config_tap_v3_OutputConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_tap_v3_OutputConfig_max_buffered_rx_bytes(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_OutputConfig_set_max_buffered_rx_bytes(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_max_buffered_tx_bytes(envoy_config_tap_v3_OutputConfig *msg, struct google_protobuf_UInt32Value* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_mutable_max_buffered_tx_bytes(envoy_config_tap_v3_OutputConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_tap_v3_OutputConfig_max_buffered_tx_bytes(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_OutputConfig_set_max_buffered_tx_bytes(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_streaming(envoy_config_tap_v3_OutputConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.OutputSink */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_OutputSink *envoy_config_tap_v3_OutputSink_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_OutputSink *)_upb_msg_new(&envoy_config_tap_v3_OutputSink_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_OutputSink *envoy_config_tap_v3_OutputSink_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_OutputSink *ret = envoy_config_tap_v3_OutputSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_OutputSink_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_OutputSink *envoy_config_tap_v3_OutputSink_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_OutputSink *ret = envoy_config_tap_v3_OutputSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_OutputSink_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_OutputSink_serialize(const envoy_config_tap_v3_OutputSink *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_OutputSink_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_config_tap_v3_OutputSink_output_sink_type_streaming_admin = 2, |
||||
envoy_config_tap_v3_OutputSink_output_sink_type_file_per_tap = 3, |
||||
envoy_config_tap_v3_OutputSink_output_sink_type_streaming_grpc = 4, |
||||
envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET = 0 |
||||
} envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases; |
||||
UPB_INLINE envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases envoy_config_tap_v3_OutputSink_output_sink_type_case(const envoy_config_tap_v3_OutputSink* msg) { return (envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 16), int32_t); } |
||||
|
||||
UPB_INLINE int32_t envoy_config_tap_v3_OutputSink_format(const envoy_config_tap_v3_OutputSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_streaming_admin(const envoy_config_tap_v3_OutputSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 2; } |
||||
UPB_INLINE const envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_OutputSink_streaming_admin(const envoy_config_tap_v3_OutputSink *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_StreamingAdminSink*, UPB_SIZE(4, 8), UPB_SIZE(8, 16), 2, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_file_per_tap(const envoy_config_tap_v3_OutputSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 3; } |
||||
UPB_INLINE const envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_OutputSink_file_per_tap(const envoy_config_tap_v3_OutputSink *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_FilePerTapSink*, UPB_SIZE(4, 8), UPB_SIZE(8, 16), 3, NULL); } |
||||
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_streaming_grpc(const envoy_config_tap_v3_OutputSink *msg) { return _upb_getoneofcase(msg, UPB_SIZE(8, 16)) == 4; } |
||||
UPB_INLINE const envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_OutputSink_streaming_grpc(const envoy_config_tap_v3_OutputSink *msg) { return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_StreamingGrpcSink*, UPB_SIZE(4, 8), UPB_SIZE(8, 16), 4, NULL); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_format(envoy_config_tap_v3_OutputSink *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_streaming_admin(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_StreamingAdminSink* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingAdminSink*, UPB_SIZE(4, 8), value, UPB_SIZE(8, 16), 2); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_OutputSink_mutable_streaming_admin(envoy_config_tap_v3_OutputSink *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_StreamingAdminSink* sub = (struct envoy_config_tap_v3_StreamingAdminSink*)envoy_config_tap_v3_OutputSink_streaming_admin(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_StreamingAdminSink*)_upb_msg_new(&envoy_config_tap_v3_StreamingAdminSink_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_OutputSink_set_streaming_admin(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_file_per_tap(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_FilePerTapSink* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_FilePerTapSink*, UPB_SIZE(4, 8), value, UPB_SIZE(8, 16), 3); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_OutputSink_mutable_file_per_tap(envoy_config_tap_v3_OutputSink *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_FilePerTapSink* sub = (struct envoy_config_tap_v3_FilePerTapSink*)envoy_config_tap_v3_OutputSink_file_per_tap(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_FilePerTapSink*)_upb_msg_new(&envoy_config_tap_v3_FilePerTapSink_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_OutputSink_set_file_per_tap(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_streaming_grpc(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_StreamingGrpcSink* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingGrpcSink*, UPB_SIZE(4, 8), value, UPB_SIZE(8, 16), 4); |
||||
} |
||||
UPB_INLINE struct envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_OutputSink_mutable_streaming_grpc(envoy_config_tap_v3_OutputSink *msg, upb_arena *arena) { |
||||
struct envoy_config_tap_v3_StreamingGrpcSink* sub = (struct envoy_config_tap_v3_StreamingGrpcSink*)envoy_config_tap_v3_OutputSink_streaming_grpc(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_tap_v3_StreamingGrpcSink*)_upb_msg_new(&envoy_config_tap_v3_StreamingGrpcSink_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_OutputSink_set_streaming_grpc(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.StreamingAdminSink */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink *envoy_config_tap_v3_StreamingAdminSink_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_StreamingAdminSink *)_upb_msg_new(&envoy_config_tap_v3_StreamingAdminSink_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink *envoy_config_tap_v3_StreamingAdminSink_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_StreamingAdminSink *ret = envoy_config_tap_v3_StreamingAdminSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_StreamingAdminSink_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink *envoy_config_tap_v3_StreamingAdminSink_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_StreamingAdminSink *ret = envoy_config_tap_v3_StreamingAdminSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_StreamingAdminSink_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_StreamingAdminSink_serialize(const envoy_config_tap_v3_StreamingAdminSink *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_StreamingAdminSink_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
/* envoy.config.tap.v3.FilePerTapSink */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_FilePerTapSink *envoy_config_tap_v3_FilePerTapSink_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_FilePerTapSink *)_upb_msg_new(&envoy_config_tap_v3_FilePerTapSink_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_FilePerTapSink *envoy_config_tap_v3_FilePerTapSink_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_FilePerTapSink *ret = envoy_config_tap_v3_FilePerTapSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_FilePerTapSink_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_FilePerTapSink *envoy_config_tap_v3_FilePerTapSink_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_FilePerTapSink *ret = envoy_config_tap_v3_FilePerTapSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_FilePerTapSink_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_FilePerTapSink_serialize(const envoy_config_tap_v3_FilePerTapSink *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_FilePerTapSink_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_tap_v3_FilePerTapSink_path_prefix(const envoy_config_tap_v3_FilePerTapSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_FilePerTapSink_set_path_prefix(envoy_config_tap_v3_FilePerTapSink *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
/* envoy.config.tap.v3.StreamingGrpcSink */ |
||||
|
||||
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink *envoy_config_tap_v3_StreamingGrpcSink_new(upb_arena *arena) { |
||||
return (envoy_config_tap_v3_StreamingGrpcSink *)_upb_msg_new(&envoy_config_tap_v3_StreamingGrpcSink_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink *envoy_config_tap_v3_StreamingGrpcSink_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_StreamingGrpcSink *ret = envoy_config_tap_v3_StreamingGrpcSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_tap_v3_StreamingGrpcSink_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink *envoy_config_tap_v3_StreamingGrpcSink_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_tap_v3_StreamingGrpcSink *ret = envoy_config_tap_v3_StreamingGrpcSink_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_tap_v3_StreamingGrpcSink_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_tap_v3_StreamingGrpcSink_serialize(const envoy_config_tap_v3_StreamingGrpcSink *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_tap_v3_StreamingGrpcSink_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_tap_v3_StreamingGrpcSink_tap_id(const envoy_config_tap_v3_StreamingGrpcSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_config_tap_v3_StreamingGrpcSink_has_grpc_service(const envoy_config_tap_v3_StreamingGrpcSink *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_tap_v3_StreamingGrpcSink_grpc_service(const envoy_config_tap_v3_StreamingGrpcSink *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_GrpcService*); } |
||||
|
||||
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_set_tap_id(envoy_config_tap_v3_StreamingGrpcSink *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_set_grpc_service(envoy_config_tap_v3_StreamingGrpcSink *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_tap_v3_StreamingGrpcSink_mutable_grpc_service(envoy_config_tap_v3_StreamingGrpcSink *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_tap_v3_StreamingGrpcSink_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_tap_v3_StreamingGrpcSink_set_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_tap_v3_common_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TAP_V3_COMMON_PROTO_UPB_H_ */ |
@ -0,0 +1,42 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/datadog.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/datadog.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_DatadogConfig__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_DatadogConfig_msginit = { |
||||
NULL, |
||||
&envoy_config_trace_v3_DatadogConfig__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_DatadogConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_datadog_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,72 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/datadog.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_DATADOG_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_DATADOG_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 envoy_config_trace_v3_DatadogConfig; |
||||
typedef struct envoy_config_trace_v3_DatadogConfig envoy_config_trace_v3_DatadogConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_DatadogConfig_msginit; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.DatadogConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_DatadogConfig *envoy_config_trace_v3_DatadogConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_DatadogConfig *)_upb_msg_new(&envoy_config_trace_v3_DatadogConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_DatadogConfig *envoy_config_trace_v3_DatadogConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_DatadogConfig *ret = envoy_config_trace_v3_DatadogConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_DatadogConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_DatadogConfig *envoy_config_trace_v3_DatadogConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_DatadogConfig *ret = envoy_config_trace_v3_DatadogConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_DatadogConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_DatadogConfig_serialize(const envoy_config_trace_v3_DatadogConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_DatadogConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_DatadogConfig_collector_cluster(const envoy_config_trace_v3_DatadogConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_DatadogConfig_service_name(const envoy_config_trace_v3_DatadogConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_DatadogConfig_set_collector_cluster(envoy_config_trace_v3_DatadogConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_DatadogConfig_set_service_name(envoy_config_trace_v3_DatadogConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_datadog_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_DATADOG_PROTO_UPB_H_ */ |
@ -0,0 +1,47 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/dynamic_ot.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/dynamic_ot.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_DynamicOtConfig_submsgs[1] = { |
||||
{.submsg = &google_protobuf_Struct_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_DynamicOtConfig__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_DynamicOtConfig_msginit = { |
||||
&envoy_config_trace_v3_DynamicOtConfig_submsgs[0], |
||||
&envoy_config_trace_v3_DynamicOtConfig__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_DynamicOtConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_dynamic_ot_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,85 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/dynamic_ot.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_DYNAMIC_OT_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_DYNAMIC_OT_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 envoy_config_trace_v3_DynamicOtConfig; |
||||
typedef struct envoy_config_trace_v3_DynamicOtConfig envoy_config_trace_v3_DynamicOtConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_DynamicOtConfig_msginit; |
||||
struct google_protobuf_Struct; |
||||
extern const upb_msglayout google_protobuf_Struct_msginit; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.DynamicOtConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_DynamicOtConfig *envoy_config_trace_v3_DynamicOtConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_DynamicOtConfig *)_upb_msg_new(&envoy_config_trace_v3_DynamicOtConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_DynamicOtConfig *envoy_config_trace_v3_DynamicOtConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_DynamicOtConfig *ret = envoy_config_trace_v3_DynamicOtConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_DynamicOtConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_DynamicOtConfig *envoy_config_trace_v3_DynamicOtConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_DynamicOtConfig *ret = envoy_config_trace_v3_DynamicOtConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_DynamicOtConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_DynamicOtConfig_serialize(const envoy_config_trace_v3_DynamicOtConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_DynamicOtConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_DynamicOtConfig_library(const envoy_config_trace_v3_DynamicOtConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_DynamicOtConfig_has_config(const envoy_config_trace_v3_DynamicOtConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Struct* envoy_config_trace_v3_DynamicOtConfig_config(const envoy_config_trace_v3_DynamicOtConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Struct*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_DynamicOtConfig_set_library(envoy_config_trace_v3_DynamicOtConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_DynamicOtConfig_set_config(envoy_config_trace_v3_DynamicOtConfig *msg, struct google_protobuf_Struct* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Struct*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Struct* envoy_config_trace_v3_DynamicOtConfig_mutable_config(envoy_config_trace_v3_DynamicOtConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_trace_v3_DynamicOtConfig_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_DynamicOtConfig_set_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_dynamic_ot_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_DYNAMIC_OT_PROTO_UPB_H_ */ |
@ -0,0 +1,50 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/lightstep.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/lightstep.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "envoy/annotations/deprecation.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_LightstepConfig_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_DataSource_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_LightstepConfig__fields[4] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(24, 48), 0, 0, 14, _UPB_MODE_ARRAY | _UPB_MODE_IS_PACKED | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(20, 40), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_LightstepConfig_msginit = { |
||||
&envoy_config_trace_v3_LightstepConfig_submsgs[0], |
||||
&envoy_config_trace_v3_LightstepConfig__fields[0], |
||||
UPB_SIZE(32, 64), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_LightstepConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_lightstep_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,107 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/lightstep.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_LIGHTSTEP_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_LIGHTSTEP_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 envoy_config_trace_v3_LightstepConfig; |
||||
typedef struct envoy_config_trace_v3_LightstepConfig envoy_config_trace_v3_LightstepConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_LightstepConfig_msginit; |
||||
struct envoy_config_core_v3_DataSource; |
||||
extern const upb_msglayout envoy_config_core_v3_DataSource_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_config_trace_v3_LightstepConfig_ENVOY = 0, |
||||
envoy_config_trace_v3_LightstepConfig_LIGHTSTEP = 1, |
||||
envoy_config_trace_v3_LightstepConfig_B3 = 2, |
||||
envoy_config_trace_v3_LightstepConfig_TRACE_CONTEXT = 3 |
||||
} envoy_config_trace_v3_LightstepConfig_PropagationMode; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.LightstepConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_LightstepConfig *envoy_config_trace_v3_LightstepConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_LightstepConfig *)_upb_msg_new(&envoy_config_trace_v3_LightstepConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_LightstepConfig *envoy_config_trace_v3_LightstepConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_LightstepConfig *ret = envoy_config_trace_v3_LightstepConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_LightstepConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_LightstepConfig *envoy_config_trace_v3_LightstepConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_LightstepConfig *ret = envoy_config_trace_v3_LightstepConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_LightstepConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_LightstepConfig_serialize(const envoy_config_trace_v3_LightstepConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_LightstepConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_LightstepConfig_collector_cluster(const envoy_config_trace_v3_LightstepConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_LightstepConfig_access_token_file(const envoy_config_trace_v3_LightstepConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); } |
||||
UPB_INLINE int32_t const* envoy_config_trace_v3_LightstepConfig_propagation_modes(const envoy_config_trace_v3_LightstepConfig *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); } |
||||
UPB_INLINE bool envoy_config_trace_v3_LightstepConfig_has_access_token(const envoy_config_trace_v3_LightstepConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_DataSource* envoy_config_trace_v3_LightstepConfig_access_token(const envoy_config_trace_v3_LightstepConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct envoy_config_core_v3_DataSource*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_LightstepConfig_set_collector_cluster(envoy_config_trace_v3_LightstepConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_LightstepConfig_set_access_token_file(envoy_config_trace_v3_LightstepConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value; |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_LightstepConfig_mutable_propagation_modes(envoy_config_trace_v3_LightstepConfig *msg, size_t *len) { |
||||
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len); |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_LightstepConfig_resize_propagation_modes(envoy_config_trace_v3_LightstepConfig *msg, size_t len, upb_arena *arena) { |
||||
return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 48), len, 2, arena); |
||||
} |
||||
UPB_INLINE bool envoy_config_trace_v3_LightstepConfig_add_propagation_modes(envoy_config_trace_v3_LightstepConfig *msg, int32_t val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(24, 48), 2, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_LightstepConfig_set_access_token(envoy_config_trace_v3_LightstepConfig *msg, struct envoy_config_core_v3_DataSource* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct envoy_config_core_v3_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_DataSource* envoy_config_trace_v3_LightstepConfig_mutable_access_token(envoy_config_trace_v3_LightstepConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_DataSource* sub = (struct envoy_config_core_v3_DataSource*)envoy_config_trace_v3_LightstepConfig_access_token(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_DataSource*)_upb_msg_new(&envoy_config_core_v3_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_LightstepConfig_set_access_token(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_lightstep_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_LIGHTSTEP_PROTO_UPB_H_ */ |
@ -0,0 +1,60 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/opencensus.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/opencensus.upb.h" |
||||
#include "envoy/config/core/v3/grpc_service.upb.h" |
||||
#include "opencensus/proto/trace/v1/trace_config.upb.h" |
||||
#include "envoy/annotations/deprecation.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_OpenCensusConfig_submsgs[2] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcService_msginit}, |
||||
{.submsg = &opencensus_proto_trace_v1_TraceConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_OpenCensusConfig__fields[13] = { |
||||
{1, UPB_SIZE(40, 72), 1, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(1, 1), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(2, 2), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(8, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(3, 3), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(16, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{8, UPB_SIZE(52, 96), 0, 0, 14, _UPB_MODE_ARRAY | _UPB_MODE_IS_PACKED | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(56, 104), 0, 0, 14, _UPB_MODE_ARRAY | _UPB_MODE_IS_PACKED | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{10, UPB_SIZE(24, 40), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{11, UPB_SIZE(4, 4), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{12, UPB_SIZE(32, 56), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{13, UPB_SIZE(44, 80), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{14, UPB_SIZE(48, 88), 3, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_OpenCensusConfig_msginit = { |
||||
&envoy_config_trace_v3_OpenCensusConfig_submsgs[0], |
||||
&envoy_config_trace_v3_OpenCensusConfig__fields[0], |
||||
UPB_SIZE(64, 112), 13, _UPB_MSGEXT_NONE, 6, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_OpenCensusConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_opencensus_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,175 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/opencensus.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_OPENCENSUS_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_OPENCENSUS_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 envoy_config_trace_v3_OpenCensusConfig; |
||||
typedef struct envoy_config_trace_v3_OpenCensusConfig envoy_config_trace_v3_OpenCensusConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_OpenCensusConfig_msginit; |
||||
struct envoy_config_core_v3_GrpcService; |
||||
struct opencensus_proto_trace_v1_TraceConfig; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcService_msginit; |
||||
extern const upb_msglayout opencensus_proto_trace_v1_TraceConfig_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_config_trace_v3_OpenCensusConfig_NONE = 0, |
||||
envoy_config_trace_v3_OpenCensusConfig_TRACE_CONTEXT = 1, |
||||
envoy_config_trace_v3_OpenCensusConfig_GRPC_TRACE_BIN = 2, |
||||
envoy_config_trace_v3_OpenCensusConfig_CLOUD_TRACE_CONTEXT = 3, |
||||
envoy_config_trace_v3_OpenCensusConfig_B3 = 4 |
||||
} envoy_config_trace_v3_OpenCensusConfig_TraceContext; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.OpenCensusConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_OpenCensusConfig *envoy_config_trace_v3_OpenCensusConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_OpenCensusConfig *)_upb_msg_new(&envoy_config_trace_v3_OpenCensusConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_OpenCensusConfig *envoy_config_trace_v3_OpenCensusConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_OpenCensusConfig *ret = envoy_config_trace_v3_OpenCensusConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_OpenCensusConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_OpenCensusConfig *envoy_config_trace_v3_OpenCensusConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_OpenCensusConfig *ret = envoy_config_trace_v3_OpenCensusConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_OpenCensusConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_OpenCensusConfig_serialize(const envoy_config_trace_v3_OpenCensusConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_OpenCensusConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_has_trace_config(const envoy_config_trace_v3_OpenCensusConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct opencensus_proto_trace_v1_TraceConfig* envoy_config_trace_v3_OpenCensusConfig_trace_config(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 72), const struct opencensus_proto_trace_v1_TraceConfig*); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_stdout_exporter_enabled(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_stackdriver_exporter_enabled(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_OpenCensusConfig_stackdriver_project_id(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_zipkin_exporter_enabled(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_OpenCensusConfig_zipkin_url(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview); } |
||||
UPB_INLINE int32_t const* envoy_config_trace_v3_OpenCensusConfig_incoming_trace_context(const envoy_config_trace_v3_OpenCensusConfig *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 96), len); } |
||||
UPB_INLINE int32_t const* envoy_config_trace_v3_OpenCensusConfig_outgoing_trace_context(const envoy_config_trace_v3_OpenCensusConfig *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(56, 104), len); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_OpenCensusConfig_stackdriver_address(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_ocagent_exporter_enabled(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_OpenCensusConfig_ocagent_address(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 56), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_has_stackdriver_grpc_service(const envoy_config_trace_v3_OpenCensusConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_OpenCensusConfig_stackdriver_grpc_service(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(44, 80), const struct envoy_config_core_v3_GrpcService*); } |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_has_ocagent_grpc_service(const envoy_config_trace_v3_OpenCensusConfig *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_OpenCensusConfig_ocagent_grpc_service(const envoy_config_trace_v3_OpenCensusConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 88), const struct envoy_config_core_v3_GrpcService*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_trace_config(envoy_config_trace_v3_OpenCensusConfig *msg, struct opencensus_proto_trace_v1_TraceConfig* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(40, 72), struct opencensus_proto_trace_v1_TraceConfig*) = value; |
||||
} |
||||
UPB_INLINE struct opencensus_proto_trace_v1_TraceConfig* envoy_config_trace_v3_OpenCensusConfig_mutable_trace_config(envoy_config_trace_v3_OpenCensusConfig *msg, upb_arena *arena) { |
||||
struct opencensus_proto_trace_v1_TraceConfig* sub = (struct opencensus_proto_trace_v1_TraceConfig*)envoy_config_trace_v3_OpenCensusConfig_trace_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct opencensus_proto_trace_v1_TraceConfig*)_upb_msg_new(&opencensus_proto_trace_v1_TraceConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_OpenCensusConfig_set_trace_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_stdout_exporter_enabled(envoy_config_trace_v3_OpenCensusConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_stackdriver_exporter_enabled(envoy_config_trace_v3_OpenCensusConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_stackdriver_project_id(envoy_config_trace_v3_OpenCensusConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_zipkin_exporter_enabled(envoy_config_trace_v3_OpenCensusConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_zipkin_url(envoy_config_trace_v3_OpenCensusConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview) = value; |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_OpenCensusConfig_mutable_incoming_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, size_t *len) { |
||||
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 96), len); |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_OpenCensusConfig_resize_incoming_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, size_t len, upb_arena *arena) { |
||||
return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 96), len, 2, arena); |
||||
} |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_add_incoming_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, int32_t val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(52, 96), 2, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_OpenCensusConfig_mutable_outgoing_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, size_t *len) { |
||||
return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(56, 104), len); |
||||
} |
||||
UPB_INLINE int32_t* envoy_config_trace_v3_OpenCensusConfig_resize_outgoing_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, size_t len, upb_arena *arena) { |
||||
return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(56, 104), len, 2, arena); |
||||
} |
||||
UPB_INLINE bool envoy_config_trace_v3_OpenCensusConfig_add_outgoing_trace_context(envoy_config_trace_v3_OpenCensusConfig *msg, int32_t val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(56, 104), 2, &val, |
||||
arena); |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_stackdriver_address(envoy_config_trace_v3_OpenCensusConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_ocagent_exporter_enabled(envoy_config_trace_v3_OpenCensusConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_ocagent_address(envoy_config_trace_v3_OpenCensusConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(32, 56), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_stackdriver_grpc_service(envoy_config_trace_v3_OpenCensusConfig *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(44, 80), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_OpenCensusConfig_mutable_stackdriver_grpc_service(envoy_config_trace_v3_OpenCensusConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_trace_v3_OpenCensusConfig_stackdriver_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_OpenCensusConfig_set_stackdriver_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_OpenCensusConfig_set_ocagent_grpc_service(envoy_config_trace_v3_OpenCensusConfig *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(48, 88), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_OpenCensusConfig_mutable_ocagent_grpc_service(envoy_config_trace_v3_OpenCensusConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_trace_v3_OpenCensusConfig_ocagent_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_OpenCensusConfig_set_ocagent_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_opencensus_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_OPENCENSUS_PROTO_UPB_H_ */ |
@ -0,0 +1,45 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/service.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/service.upb.h" |
||||
#include "envoy/config/core/v3/grpc_service.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_TraceServiceConfig_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcService_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_TraceServiceConfig__fields[1] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_TraceServiceConfig_msginit = { |
||||
&envoy_config_trace_v3_TraceServiceConfig_submsgs[0], |
||||
&envoy_config_trace_v3_TraceServiceConfig__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_TraceServiceConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_service_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,81 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/service.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_SERVICE_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_SERVICE_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 envoy_config_trace_v3_TraceServiceConfig; |
||||
typedef struct envoy_config_trace_v3_TraceServiceConfig envoy_config_trace_v3_TraceServiceConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_TraceServiceConfig_msginit; |
||||
struct envoy_config_core_v3_GrpcService; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcService_msginit; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.TraceServiceConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_TraceServiceConfig *envoy_config_trace_v3_TraceServiceConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_TraceServiceConfig *)_upb_msg_new(&envoy_config_trace_v3_TraceServiceConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_TraceServiceConfig *envoy_config_trace_v3_TraceServiceConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_TraceServiceConfig *ret = envoy_config_trace_v3_TraceServiceConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_TraceServiceConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_TraceServiceConfig *envoy_config_trace_v3_TraceServiceConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_TraceServiceConfig *ret = envoy_config_trace_v3_TraceServiceConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_TraceServiceConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_TraceServiceConfig_serialize(const envoy_config_trace_v3_TraceServiceConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_TraceServiceConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_trace_v3_TraceServiceConfig_has_grpc_service(const envoy_config_trace_v3_TraceServiceConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_TraceServiceConfig_grpc_service(const envoy_config_trace_v3_TraceServiceConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_GrpcService*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_TraceServiceConfig_set_grpc_service(envoy_config_trace_v3_TraceServiceConfig *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_TraceServiceConfig_mutable_grpc_service(envoy_config_trace_v3_TraceServiceConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_trace_v3_TraceServiceConfig_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_TraceServiceConfig_set_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_service_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_SERVICE_PROTO_UPB_H_ */ |
@ -0,0 +1,67 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/skywalking.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/skywalking.upb.h" |
||||
#include "envoy/config/core/v3/grpc_service.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/sensitive.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_SkyWalkingConfig_submsgs[2] = { |
||||
{.submsg = &envoy_config_core_v3_GrpcService_msginit}, |
||||
{.submsg = &envoy_config_trace_v3_ClientConfig_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_SkyWalkingConfig__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 2, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_SkyWalkingConfig_msginit = { |
||||
&envoy_config_trace_v3_SkyWalkingConfig_submsgs[0], |
||||
&envoy_config_trace_v3_SkyWalkingConfig__fields[0], |
||||
UPB_SIZE(16, 24), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_ClientConfig_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UInt32Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_ClientConfig__fields[4] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(24, 48), UPB_SIZE(-33, -65), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(20, 40), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_ClientConfig_msginit = { |
||||
&envoy_config_trace_v3_ClientConfig_submsgs[0], |
||||
&envoy_config_trace_v3_ClientConfig__fields[0], |
||||
UPB_SIZE(40, 80), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_config_trace_v3_SkyWalkingConfig_msginit, |
||||
&envoy_config_trace_v3_ClientConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_skywalking_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,163 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/skywalking.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_SKYWALKING_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_SKYWALKING_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 envoy_config_trace_v3_SkyWalkingConfig; |
||||
struct envoy_config_trace_v3_ClientConfig; |
||||
typedef struct envoy_config_trace_v3_SkyWalkingConfig envoy_config_trace_v3_SkyWalkingConfig; |
||||
typedef struct envoy_config_trace_v3_ClientConfig envoy_config_trace_v3_ClientConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_SkyWalkingConfig_msginit; |
||||
extern const upb_msglayout envoy_config_trace_v3_ClientConfig_msginit; |
||||
struct envoy_config_core_v3_GrpcService; |
||||
struct google_protobuf_UInt32Value; |
||||
extern const upb_msglayout envoy_config_core_v3_GrpcService_msginit; |
||||
extern const upb_msglayout google_protobuf_UInt32Value_msginit; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.SkyWalkingConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_SkyWalkingConfig *envoy_config_trace_v3_SkyWalkingConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_SkyWalkingConfig *)_upb_msg_new(&envoy_config_trace_v3_SkyWalkingConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_SkyWalkingConfig *envoy_config_trace_v3_SkyWalkingConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_SkyWalkingConfig *ret = envoy_config_trace_v3_SkyWalkingConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_SkyWalkingConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_SkyWalkingConfig *envoy_config_trace_v3_SkyWalkingConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_SkyWalkingConfig *ret = envoy_config_trace_v3_SkyWalkingConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_SkyWalkingConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_SkyWalkingConfig_serialize(const envoy_config_trace_v3_SkyWalkingConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_SkyWalkingConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_trace_v3_SkyWalkingConfig_has_grpc_service(const envoy_config_trace_v3_SkyWalkingConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_SkyWalkingConfig_grpc_service(const envoy_config_trace_v3_SkyWalkingConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_GrpcService*); } |
||||
UPB_INLINE bool envoy_config_trace_v3_SkyWalkingConfig_has_client_config(const envoy_config_trace_v3_SkyWalkingConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const envoy_config_trace_v3_ClientConfig* envoy_config_trace_v3_SkyWalkingConfig_client_config(const envoy_config_trace_v3_SkyWalkingConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_trace_v3_ClientConfig*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_SkyWalkingConfig_set_grpc_service(envoy_config_trace_v3_SkyWalkingConfig *msg, struct envoy_config_core_v3_GrpcService* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_GrpcService*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_trace_v3_SkyWalkingConfig_mutable_grpc_service(envoy_config_trace_v3_SkyWalkingConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_trace_v3_SkyWalkingConfig_grpc_service(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_GrpcService*)_upb_msg_new(&envoy_config_core_v3_GrpcService_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_SkyWalkingConfig_set_grpc_service(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_SkyWalkingConfig_set_client_config(envoy_config_trace_v3_SkyWalkingConfig *msg, envoy_config_trace_v3_ClientConfig* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_trace_v3_ClientConfig*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_trace_v3_ClientConfig* envoy_config_trace_v3_SkyWalkingConfig_mutable_client_config(envoy_config_trace_v3_SkyWalkingConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_trace_v3_ClientConfig* sub = (struct envoy_config_trace_v3_ClientConfig*)envoy_config_trace_v3_SkyWalkingConfig_client_config(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_trace_v3_ClientConfig*)_upb_msg_new(&envoy_config_trace_v3_ClientConfig_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_SkyWalkingConfig_set_client_config(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.config.trace.v3.ClientConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_ClientConfig *envoy_config_trace_v3_ClientConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_ClientConfig *)_upb_msg_new(&envoy_config_trace_v3_ClientConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_ClientConfig *envoy_config_trace_v3_ClientConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_ClientConfig *ret = envoy_config_trace_v3_ClientConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_ClientConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_ClientConfig *envoy_config_trace_v3_ClientConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_ClientConfig *ret = envoy_config_trace_v3_ClientConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_ClientConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_ClientConfig_serialize(const envoy_config_trace_v3_ClientConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_ClientConfig_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_config_trace_v3_ClientConfig_backend_token_specifier_backend_token = 3, |
||||
envoy_config_trace_v3_ClientConfig_backend_token_specifier_NOT_SET = 0 |
||||
} envoy_config_trace_v3_ClientConfig_backend_token_specifier_oneofcases; |
||||
UPB_INLINE envoy_config_trace_v3_ClientConfig_backend_token_specifier_oneofcases envoy_config_trace_v3_ClientConfig_backend_token_specifier_case(const envoy_config_trace_v3_ClientConfig* msg) { return (envoy_config_trace_v3_ClientConfig_backend_token_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(32, 64), int32_t); } |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ClientConfig_service_name(const envoy_config_trace_v3_ClientConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ClientConfig_instance_name(const envoy_config_trace_v3_ClientConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_ClientConfig_has_backend_token(const envoy_config_trace_v3_ClientConfig *msg) { return _upb_getoneofcase(msg, UPB_SIZE(32, 64)) == 3; } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ClientConfig_backend_token(const envoy_config_trace_v3_ClientConfig *msg) { return UPB_READ_ONEOF(msg, upb_strview, UPB_SIZE(24, 48), UPB_SIZE(32, 64), 3, upb_strview_make("", strlen(""))); } |
||||
UPB_INLINE bool envoy_config_trace_v3_ClientConfig_has_max_cache_size(const envoy_config_trace_v3_ClientConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_trace_v3_ClientConfig_max_cache_size(const envoy_config_trace_v3_ClientConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_UInt32Value*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_ClientConfig_set_service_name(envoy_config_trace_v3_ClientConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ClientConfig_set_instance_name(envoy_config_trace_v3_ClientConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ClientConfig_set_backend_token(envoy_config_trace_v3_ClientConfig *msg, upb_strview value) { |
||||
UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(24, 48), value, UPB_SIZE(32, 64), 3); |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ClientConfig_set_max_cache_size(envoy_config_trace_v3_ClientConfig *msg, struct google_protobuf_UInt32Value* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_trace_v3_ClientConfig_mutable_max_cache_size(envoy_config_trace_v3_ClientConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_trace_v3_ClientConfig_max_cache_size(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_ClientConfig_set_max_cache_size(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_skywalking_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_SKYWALKING_PROTO_UPB_H_ */ |
@ -0,0 +1,30 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/trace.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/datadog.upb.h" |
||||
#include "envoy/config/trace/v3/dynamic_ot.upb.h" |
||||
#include "envoy/config/trace/v3/http_tracer.upb.h" |
||||
#include "envoy/config/trace/v3/lightstep.upb.h" |
||||
#include "envoy/config/trace/v3/opencensus.upb.h" |
||||
#include "envoy/config/trace/v3/service.upb.h" |
||||
#include "envoy/config/trace/v3/zipkin.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_trace_proto_upb_file_layout = { |
||||
NULL, |
||||
NULL, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,41 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/trace.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
/* Public Imports. */ |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
#include "envoy/config/trace/v3/trace.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_trace_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_TRACE_PROTO_UPB_H_ */ |
@ -0,0 +1,69 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/xray.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/xray.upb.h" |
||||
#include "envoy/config/core/v3/address.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_XRayConfig_submsgs[3] = { |
||||
{.submsg = &envoy_config_core_v3_DataSource_msginit}, |
||||
{.submsg = &envoy_config_core_v3_SocketAddress_msginit}, |
||||
{.submsg = &envoy_config_trace_v3_XRayConfig_SegmentFields_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_XRayConfig__fields[4] = { |
||||
{1, UPB_SIZE(12, 24), 1, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(16, 32), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(20, 40), 3, 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_XRayConfig_msginit = { |
||||
&envoy_config_trace_v3_XRayConfig_submsgs[0], |
||||
&envoy_config_trace_v3_XRayConfig__fields[0], |
||||
UPB_SIZE(24, 48), 4, _UPB_MSGEXT_NONE, 4, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_XRayConfig_SegmentFields_submsgs[1] = { |
||||
{.submsg = &google_protobuf_Struct_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_XRayConfig_SegmentFields__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_XRayConfig_SegmentFields_msginit = { |
||||
&envoy_config_trace_v3_XRayConfig_SegmentFields_submsgs[0], |
||||
&envoy_config_trace_v3_XRayConfig_SegmentFields__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_config_trace_v3_XRayConfig_msginit, |
||||
&envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_xray_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,169 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/xray.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_XRAY_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_XRAY_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 envoy_config_trace_v3_XRayConfig; |
||||
struct envoy_config_trace_v3_XRayConfig_SegmentFields; |
||||
typedef struct envoy_config_trace_v3_XRayConfig envoy_config_trace_v3_XRayConfig; |
||||
typedef struct envoy_config_trace_v3_XRayConfig_SegmentFields envoy_config_trace_v3_XRayConfig_SegmentFields; |
||||
extern const upb_msglayout envoy_config_trace_v3_XRayConfig_msginit; |
||||
extern const upb_msglayout envoy_config_trace_v3_XRayConfig_SegmentFields_msginit; |
||||
struct envoy_config_core_v3_DataSource; |
||||
struct envoy_config_core_v3_SocketAddress; |
||||
struct google_protobuf_Struct; |
||||
extern const upb_msglayout envoy_config_core_v3_DataSource_msginit; |
||||
extern const upb_msglayout envoy_config_core_v3_SocketAddress_msginit; |
||||
extern const upb_msglayout google_protobuf_Struct_msginit; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.XRayConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig *envoy_config_trace_v3_XRayConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_XRayConfig *)_upb_msg_new(&envoy_config_trace_v3_XRayConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig *envoy_config_trace_v3_XRayConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_XRayConfig *ret = envoy_config_trace_v3_XRayConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_XRayConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig *envoy_config_trace_v3_XRayConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_XRayConfig *ret = envoy_config_trace_v3_XRayConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_XRayConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_XRayConfig_serialize(const envoy_config_trace_v3_XRayConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_XRayConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_config_trace_v3_XRayConfig_has_daemon_endpoint(const envoy_config_trace_v3_XRayConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_SocketAddress* envoy_config_trace_v3_XRayConfig_daemon_endpoint(const envoy_config_trace_v3_XRayConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_SocketAddress*); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_XRayConfig_segment_name(const envoy_config_trace_v3_XRayConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_XRayConfig_has_sampling_rule_manifest(const envoy_config_trace_v3_XRayConfig *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct envoy_config_core_v3_DataSource* envoy_config_trace_v3_XRayConfig_sampling_rule_manifest(const envoy_config_trace_v3_XRayConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_core_v3_DataSource*); } |
||||
UPB_INLINE bool envoy_config_trace_v3_XRayConfig_has_segment_fields(const envoy_config_trace_v3_XRayConfig *msg) { return _upb_hasbit(msg, 3); } |
||||
UPB_INLINE const envoy_config_trace_v3_XRayConfig_SegmentFields* envoy_config_trace_v3_XRayConfig_segment_fields(const envoy_config_trace_v3_XRayConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const envoy_config_trace_v3_XRayConfig_SegmentFields*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_set_daemon_endpoint(envoy_config_trace_v3_XRayConfig *msg, struct envoy_config_core_v3_SocketAddress* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_SocketAddress*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_SocketAddress* envoy_config_trace_v3_XRayConfig_mutable_daemon_endpoint(envoy_config_trace_v3_XRayConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_SocketAddress* sub = (struct envoy_config_core_v3_SocketAddress*)envoy_config_trace_v3_XRayConfig_daemon_endpoint(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_SocketAddress*)_upb_msg_new(&envoy_config_core_v3_SocketAddress_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_XRayConfig_set_daemon_endpoint(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_set_segment_name(envoy_config_trace_v3_XRayConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_set_sampling_rule_manifest(envoy_config_trace_v3_XRayConfig *msg, struct envoy_config_core_v3_DataSource* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_core_v3_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_DataSource* envoy_config_trace_v3_XRayConfig_mutable_sampling_rule_manifest(envoy_config_trace_v3_XRayConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_DataSource* sub = (struct envoy_config_core_v3_DataSource*)envoy_config_trace_v3_XRayConfig_sampling_rule_manifest(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_DataSource*)_upb_msg_new(&envoy_config_core_v3_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_XRayConfig_set_sampling_rule_manifest(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_set_segment_fields(envoy_config_trace_v3_XRayConfig *msg, envoy_config_trace_v3_XRayConfig_SegmentFields* value) { |
||||
_upb_sethas(msg, 3); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), envoy_config_trace_v3_XRayConfig_SegmentFields*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_trace_v3_XRayConfig_SegmentFields* envoy_config_trace_v3_XRayConfig_mutable_segment_fields(envoy_config_trace_v3_XRayConfig *msg, upb_arena *arena) { |
||||
struct envoy_config_trace_v3_XRayConfig_SegmentFields* sub = (struct envoy_config_trace_v3_XRayConfig_SegmentFields*)envoy_config_trace_v3_XRayConfig_segment_fields(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_trace_v3_XRayConfig_SegmentFields*)_upb_msg_new(&envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_XRayConfig_set_segment_fields(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.config.trace.v3.XRayConfig.SegmentFields */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig_SegmentFields *envoy_config_trace_v3_XRayConfig_SegmentFields_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_XRayConfig_SegmentFields *)_upb_msg_new(&envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig_SegmentFields *envoy_config_trace_v3_XRayConfig_SegmentFields_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_XRayConfig_SegmentFields *ret = envoy_config_trace_v3_XRayConfig_SegmentFields_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_XRayConfig_SegmentFields *envoy_config_trace_v3_XRayConfig_SegmentFields_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_XRayConfig_SegmentFields *ret = envoy_config_trace_v3_XRayConfig_SegmentFields_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_XRayConfig_SegmentFields_serialize(const envoy_config_trace_v3_XRayConfig_SegmentFields *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_XRayConfig_SegmentFields_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_XRayConfig_SegmentFields_origin(const envoy_config_trace_v3_XRayConfig_SegmentFields *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_XRayConfig_SegmentFields_has_aws(const envoy_config_trace_v3_XRayConfig_SegmentFields *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Struct* envoy_config_trace_v3_XRayConfig_SegmentFields_aws(const envoy_config_trace_v3_XRayConfig_SegmentFields *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Struct*); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_SegmentFields_set_origin(envoy_config_trace_v3_XRayConfig_SegmentFields *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_XRayConfig_SegmentFields_set_aws(envoy_config_trace_v3_XRayConfig_SegmentFields *msg, struct google_protobuf_Struct* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Struct*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Struct* envoy_config_trace_v3_XRayConfig_SegmentFields_mutable_aws(envoy_config_trace_v3_XRayConfig_SegmentFields *msg, upb_arena *arena) { |
||||
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_trace_v3_XRayConfig_SegmentFields_aws(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_XRayConfig_SegmentFields_set_aws(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_xray_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_XRAY_PROTO_UPB_H_ */ |
@ -0,0 +1,52 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/zipkin.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/config/trace/v3/zipkin.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "envoy/annotations/deprecation.upb.h" |
||||
#include "udpa/annotations/migrate.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_config_trace_v3_ZipkinConfig_submsgs[1] = { |
||||
{.submsg = &google_protobuf_BoolValue_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_config_trace_v3_ZipkinConfig__fields[6] = { |
||||
{1, UPB_SIZE(12, 16), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(20, 32), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(8, 8), 0, 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(36, 64), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(4, 4), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(28, 48), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_config_trace_v3_ZipkinConfig_msginit = { |
||||
&envoy_config_trace_v3_ZipkinConfig_submsgs[0], |
||||
&envoy_config_trace_v3_ZipkinConfig__fields[0], |
||||
UPB_SIZE(40, 80), 6, _UPB_MSGEXT_NONE, 6, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_config_trace_v3_ZipkinConfig_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_config_trace_v3_zipkin_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,108 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/config/trace/v3/zipkin.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_CONFIG_TRACE_V3_ZIPKIN_PROTO_UPB_H_ |
||||
#define ENVOY_CONFIG_TRACE_V3_ZIPKIN_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 envoy_config_trace_v3_ZipkinConfig; |
||||
typedef struct envoy_config_trace_v3_ZipkinConfig envoy_config_trace_v3_ZipkinConfig; |
||||
extern const upb_msglayout envoy_config_trace_v3_ZipkinConfig_msginit; |
||||
struct google_protobuf_BoolValue; |
||||
extern const upb_msglayout google_protobuf_BoolValue_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_config_trace_v3_ZipkinConfig_DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 0, |
||||
envoy_config_trace_v3_ZipkinConfig_HTTP_JSON = 1, |
||||
envoy_config_trace_v3_ZipkinConfig_HTTP_PROTO = 2, |
||||
envoy_config_trace_v3_ZipkinConfig_GRPC = 3 |
||||
} envoy_config_trace_v3_ZipkinConfig_CollectorEndpointVersion; |
||||
|
||||
|
||||
/* envoy.config.trace.v3.ZipkinConfig */ |
||||
|
||||
UPB_INLINE envoy_config_trace_v3_ZipkinConfig *envoy_config_trace_v3_ZipkinConfig_new(upb_arena *arena) { |
||||
return (envoy_config_trace_v3_ZipkinConfig *)_upb_msg_new(&envoy_config_trace_v3_ZipkinConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_ZipkinConfig *envoy_config_trace_v3_ZipkinConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_ZipkinConfig *ret = envoy_config_trace_v3_ZipkinConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_config_trace_v3_ZipkinConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_config_trace_v3_ZipkinConfig *envoy_config_trace_v3_ZipkinConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_config_trace_v3_ZipkinConfig *ret = envoy_config_trace_v3_ZipkinConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_config_trace_v3_ZipkinConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_config_trace_v3_ZipkinConfig_serialize(const envoy_config_trace_v3_ZipkinConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_config_trace_v3_ZipkinConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ZipkinConfig_collector_cluster(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ZipkinConfig_collector_endpoint(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), upb_strview); } |
||||
UPB_INLINE bool envoy_config_trace_v3_ZipkinConfig_trace_id_128bit(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); } |
||||
UPB_INLINE bool envoy_config_trace_v3_ZipkinConfig_has_shared_span_context(const envoy_config_trace_v3_ZipkinConfig *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_BoolValue* envoy_config_trace_v3_ZipkinConfig_shared_span_context(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(36, 64), const struct google_protobuf_BoolValue*); } |
||||
UPB_INLINE int32_t envoy_config_trace_v3_ZipkinConfig_collector_endpoint_version(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); } |
||||
UPB_INLINE upb_strview envoy_config_trace_v3_ZipkinConfig_collector_hostname(const envoy_config_trace_v3_ZipkinConfig *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_collector_cluster(envoy_config_trace_v3_ZipkinConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_collector_endpoint(envoy_config_trace_v3_ZipkinConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_trace_id_128bit(envoy_config_trace_v3_ZipkinConfig *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_shared_span_context(envoy_config_trace_v3_ZipkinConfig *msg, struct google_protobuf_BoolValue* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(36, 64), struct google_protobuf_BoolValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_BoolValue* envoy_config_trace_v3_ZipkinConfig_mutable_shared_span_context(envoy_config_trace_v3_ZipkinConfig *msg, upb_arena *arena) { |
||||
struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_config_trace_v3_ZipkinConfig_shared_span_context(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_BoolValue*)_upb_msg_new(&google_protobuf_BoolValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_config_trace_v3_ZipkinConfig_set_shared_span_context(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_collector_endpoint_version(envoy_config_trace_v3_ZipkinConfig *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_config_trace_v3_ZipkinConfig_set_collector_hostname(envoy_config_trace_v3_ZipkinConfig *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_config_trace_v3_zipkin_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_CONFIG_TRACE_V3_ZIPKIN_PROTO_UPB_H_ */ |
@ -0,0 +1,60 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h" |
||||
#include "envoy/config/core/v3/base.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_submsgs[1] = { |
||||
{.submsg = &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit = { |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_submsgs[0], |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_submsgs[1] = { |
||||
{.submsg = &envoy_config_core_v3_DataSource_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit = { |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_submsgs[0], |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit, |
||||
&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,131 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_TLS_SPIFFE_VALIDATOR_CONFIG_PROTO_UPB_H_ |
||||
#define ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_TLS_SPIFFE_VALIDATOR_CONFIG_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 envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig; |
||||
struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain; |
||||
typedef struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig; |
||||
typedef struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain; |
||||
extern const upb_msglayout envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit; |
||||
extern const upb_msglayout envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit; |
||||
struct envoy_config_core_v3_DataSource; |
||||
extern const upb_msglayout envoy_config_core_v3_DataSource_msginit; |
||||
|
||||
|
||||
/* envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig */ |
||||
|
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_new(upb_arena *arena) { |
||||
return (envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *)_upb_msg_new(&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *ret = envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *ret = envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_serialize(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_has_trust_domains(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain* const* envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_trust_domains(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg, size_t *len) { return (const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain** envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_mutable_trust_domains(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg, size_t *len) { |
||||
return (envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain** envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_resize_trust_domains(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg, size_t len, upb_arena *arena) { |
||||
return (envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain* envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_add_trust_domains(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig *msg, upb_arena *arena) { |
||||
struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain* sub = (struct envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain*)_upb_msg_new(&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_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; |
||||
} |
||||
|
||||
/* envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig.TrustDomain */ |
||||
|
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_new(upb_arena *arena) { |
||||
return (envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *)_upb_msg_new(&envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *ret = envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *ret = envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_serialize(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_name(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_has_trust_bundle(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct envoy_config_core_v3_DataSource* envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_trust_bundle(const envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_DataSource*); } |
||||
|
||||
UPB_INLINE void envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_set_name(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_set_trust_bundle(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg, struct envoy_config_core_v3_DataSource* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_DataSource*) = value; |
||||
} |
||||
UPB_INLINE struct envoy_config_core_v3_DataSource* envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_mutable_trust_bundle(envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain *msg, upb_arena *arena) { |
||||
struct envoy_config_core_v3_DataSource* sub = (struct envoy_config_core_v3_DataSource*)envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_trust_bundle(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_config_core_v3_DataSource*)_upb_msg_new(&envoy_config_core_v3_DataSource_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_extensions_transport_sockets_tls_v3_SPIFFECertValidatorConfig_TrustDomain_set_trust_bundle(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_EXTENSIONS_TRANSPORT_SOCKETS_TLS_V3_TLS_SPIFFE_VALIDATOR_CONFIG_PROTO_UPB_H_ */ |
@ -1,38 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/cluster/v3/cds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/service/cluster/v3/cds.upb.h" |
||||
#include "envoy/service/discovery/v3/discovery.upb.h" |
||||
#include "google/api/annotations.upb.h" |
||||
#include "envoy/annotations/resource.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout envoy_service_cluster_v3_CdsDummy_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_service_cluster_v3_CdsDummy_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_service_cluster_v3_cds_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/cluster/v3/cds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_SERVICE_CLUSTER_V3_CDS_PROTO_UPB_H_ |
||||
#define ENVOY_SERVICE_CLUSTER_V3_CDS_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 envoy_service_cluster_v3_CdsDummy; |
||||
typedef struct envoy_service_cluster_v3_CdsDummy envoy_service_cluster_v3_CdsDummy; |
||||
extern const upb_msglayout envoy_service_cluster_v3_CdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.service.cluster.v3.CdsDummy */ |
||||
|
||||
UPB_INLINE envoy_service_cluster_v3_CdsDummy *envoy_service_cluster_v3_CdsDummy_new(upb_arena *arena) { |
||||
return (envoy_service_cluster_v3_CdsDummy *)_upb_msg_new(&envoy_service_cluster_v3_CdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_service_cluster_v3_CdsDummy *envoy_service_cluster_v3_CdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_service_cluster_v3_CdsDummy *ret = envoy_service_cluster_v3_CdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_service_cluster_v3_CdsDummy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_service_cluster_v3_CdsDummy *envoy_service_cluster_v3_CdsDummy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_service_cluster_v3_CdsDummy *ret = envoy_service_cluster_v3_CdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_service_cluster_v3_CdsDummy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_service_cluster_v3_CdsDummy_serialize(const envoy_service_cluster_v3_CdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_service_cluster_v3_CdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_service_cluster_v3_cds_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_SERVICE_CLUSTER_V3_CDS_PROTO_UPB_H_ */ |
@ -1,38 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/endpoint/v3/eds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/service/endpoint/v3/eds.upb.h" |
||||
#include "envoy/service/discovery/v3/discovery.upb.h" |
||||
#include "google/api/annotations.upb.h" |
||||
#include "envoy/annotations/resource.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout envoy_service_endpoint_v3_EdsDummy_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_service_endpoint_v3_EdsDummy_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_service_endpoint_v3_eds_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/endpoint/v3/eds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_SERVICE_ENDPOINT_V3_EDS_PROTO_UPB_H_ |
||||
#define ENVOY_SERVICE_ENDPOINT_V3_EDS_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 envoy_service_endpoint_v3_EdsDummy; |
||||
typedef struct envoy_service_endpoint_v3_EdsDummy envoy_service_endpoint_v3_EdsDummy; |
||||
extern const upb_msglayout envoy_service_endpoint_v3_EdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.service.endpoint.v3.EdsDummy */ |
||||
|
||||
UPB_INLINE envoy_service_endpoint_v3_EdsDummy *envoy_service_endpoint_v3_EdsDummy_new(upb_arena *arena) { |
||||
return (envoy_service_endpoint_v3_EdsDummy *)_upb_msg_new(&envoy_service_endpoint_v3_EdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_service_endpoint_v3_EdsDummy *envoy_service_endpoint_v3_EdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_service_endpoint_v3_EdsDummy *ret = envoy_service_endpoint_v3_EdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_service_endpoint_v3_EdsDummy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_service_endpoint_v3_EdsDummy *envoy_service_endpoint_v3_EdsDummy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_service_endpoint_v3_EdsDummy *ret = envoy_service_endpoint_v3_EdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_service_endpoint_v3_EdsDummy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_service_endpoint_v3_EdsDummy_serialize(const envoy_service_endpoint_v3_EdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_service_endpoint_v3_EdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_service_endpoint_v3_eds_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_SERVICE_ENDPOINT_V3_EDS_PROTO_UPB_H_ */ |
@ -1,38 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/listener/v3/lds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/service/listener/v3/lds.upb.h" |
||||
#include "envoy/service/discovery/v3/discovery.upb.h" |
||||
#include "google/api/annotations.upb.h" |
||||
#include "envoy/annotations/resource.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout envoy_service_listener_v3_LdsDummy_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_service_listener_v3_LdsDummy_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_service_listener_v3_lds_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/listener/v3/lds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_SERVICE_LISTENER_V3_LDS_PROTO_UPB_H_ |
||||
#define ENVOY_SERVICE_LISTENER_V3_LDS_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 envoy_service_listener_v3_LdsDummy; |
||||
typedef struct envoy_service_listener_v3_LdsDummy envoy_service_listener_v3_LdsDummy; |
||||
extern const upb_msglayout envoy_service_listener_v3_LdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.service.listener.v3.LdsDummy */ |
||||
|
||||
UPB_INLINE envoy_service_listener_v3_LdsDummy *envoy_service_listener_v3_LdsDummy_new(upb_arena *arena) { |
||||
return (envoy_service_listener_v3_LdsDummy *)_upb_msg_new(&envoy_service_listener_v3_LdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_service_listener_v3_LdsDummy *envoy_service_listener_v3_LdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_service_listener_v3_LdsDummy *ret = envoy_service_listener_v3_LdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_service_listener_v3_LdsDummy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_service_listener_v3_LdsDummy *envoy_service_listener_v3_LdsDummy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_service_listener_v3_LdsDummy *ret = envoy_service_listener_v3_LdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_service_listener_v3_LdsDummy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_service_listener_v3_LdsDummy_serialize(const envoy_service_listener_v3_LdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_service_listener_v3_LdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_service_listener_v3_lds_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_SERVICE_LISTENER_V3_LDS_PROTO_UPB_H_ */ |
@ -1,38 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/route/v3/rds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/service/route/v3/rds.upb.h" |
||||
#include "envoy/service/discovery/v3/discovery.upb.h" |
||||
#include "google/api/annotations.upb.h" |
||||
#include "envoy/annotations/resource.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout envoy_service_route_v3_RdsDummy_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_service_route_v3_RdsDummy_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_service_route_v3_rds_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/route/v3/rds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_SERVICE_ROUTE_V3_RDS_PROTO_UPB_H_ |
||||
#define ENVOY_SERVICE_ROUTE_V3_RDS_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 envoy_service_route_v3_RdsDummy; |
||||
typedef struct envoy_service_route_v3_RdsDummy envoy_service_route_v3_RdsDummy; |
||||
extern const upb_msglayout envoy_service_route_v3_RdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.service.route.v3.RdsDummy */ |
||||
|
||||
UPB_INLINE envoy_service_route_v3_RdsDummy *envoy_service_route_v3_RdsDummy_new(upb_arena *arena) { |
||||
return (envoy_service_route_v3_RdsDummy *)_upb_msg_new(&envoy_service_route_v3_RdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_service_route_v3_RdsDummy *envoy_service_route_v3_RdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_service_route_v3_RdsDummy *ret = envoy_service_route_v3_RdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_service_route_v3_RdsDummy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_service_route_v3_RdsDummy *envoy_service_route_v3_RdsDummy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_service_route_v3_RdsDummy *ret = envoy_service_route_v3_RdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_service_route_v3_RdsDummy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_service_route_v3_RdsDummy_serialize(const envoy_service_route_v3_RdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_service_route_v3_RdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_service_route_v3_rds_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_SERVICE_ROUTE_V3_RDS_PROTO_UPB_H_ */ |
@ -1,38 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/route/v3/srds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/service/route/v3/srds.upb.h" |
||||
#include "envoy/service/discovery/v3/discovery.upb.h" |
||||
#include "google/api/annotations.upb.h" |
||||
#include "envoy/annotations/resource.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout envoy_service_route_v3_SrdsDummy_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_service_route_v3_SrdsDummy_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_service_route_v3_srds_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/service/route/v3/srds.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_SERVICE_ROUTE_V3_SRDS_PROTO_UPB_H_ |
||||
#define ENVOY_SERVICE_ROUTE_V3_SRDS_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 envoy_service_route_v3_SrdsDummy; |
||||
typedef struct envoy_service_route_v3_SrdsDummy envoy_service_route_v3_SrdsDummy; |
||||
extern const upb_msglayout envoy_service_route_v3_SrdsDummy_msginit; |
||||
|
||||
|
||||
/* envoy.service.route.v3.SrdsDummy */ |
||||
|
||||
UPB_INLINE envoy_service_route_v3_SrdsDummy *envoy_service_route_v3_SrdsDummy_new(upb_arena *arena) { |
||||
return (envoy_service_route_v3_SrdsDummy *)_upb_msg_new(&envoy_service_route_v3_SrdsDummy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_service_route_v3_SrdsDummy *envoy_service_route_v3_SrdsDummy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_service_route_v3_SrdsDummy *ret = envoy_service_route_v3_SrdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_service_route_v3_SrdsDummy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_service_route_v3_SrdsDummy *envoy_service_route_v3_SrdsDummy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_service_route_v3_SrdsDummy *ret = envoy_service_route_v3_SrdsDummy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_service_route_v3_SrdsDummy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_service_route_v3_SrdsDummy_serialize(const envoy_service_route_v3_SrdsDummy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_service_route_v3_SrdsDummy_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_service_route_v3_srds_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_SERVICE_ROUTE_V3_SRDS_PROTO_UPB_H_ */ |
@ -0,0 +1,46 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/http/v3/cookie.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/type/http/v3/cookie.upb.h" |
||||
#include "google/protobuf/duration.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_type_http_v3_Cookie_submsgs[1] = { |
||||
{.submsg = &google_protobuf_Duration_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_http_v3_Cookie__fields[3] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(20, 40), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(12, 24), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_http_v3_Cookie_msginit = { |
||||
&envoy_type_http_v3_Cookie_submsgs[0], |
||||
&envoy_type_http_v3_Cookie__fields[0], |
||||
UPB_SIZE(24, 48), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_type_http_v3_Cookie_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_type_http_v3_cookie_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,89 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/http/v3/cookie.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_HTTP_V3_COOKIE_PROTO_UPB_H_ |
||||
#define ENVOY_TYPE_HTTP_V3_COOKIE_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 envoy_type_http_v3_Cookie; |
||||
typedef struct envoy_type_http_v3_Cookie envoy_type_http_v3_Cookie; |
||||
extern const upb_msglayout envoy_type_http_v3_Cookie_msginit; |
||||
struct google_protobuf_Duration; |
||||
extern const upb_msglayout google_protobuf_Duration_msginit; |
||||
|
||||
|
||||
/* envoy.type.http.v3.Cookie */ |
||||
|
||||
UPB_INLINE envoy_type_http_v3_Cookie *envoy_type_http_v3_Cookie_new(upb_arena *arena) { |
||||
return (envoy_type_http_v3_Cookie *)_upb_msg_new(&envoy_type_http_v3_Cookie_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_http_v3_Cookie *envoy_type_http_v3_Cookie_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_http_v3_Cookie *ret = envoy_type_http_v3_Cookie_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_http_v3_Cookie_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_http_v3_Cookie *envoy_type_http_v3_Cookie_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_http_v3_Cookie *ret = envoy_type_http_v3_Cookie_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_http_v3_Cookie_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_http_v3_Cookie_serialize(const envoy_type_http_v3_Cookie *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_http_v3_Cookie_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_http_v3_Cookie_name(const envoy_type_http_v3_Cookie *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool envoy_type_http_v3_Cookie_has_ttl(const envoy_type_http_v3_Cookie *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_type_http_v3_Cookie_ttl(const envoy_type_http_v3_Cookie *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_Duration*); } |
||||
UPB_INLINE upb_strview envoy_type_http_v3_Cookie_path(const envoy_type_http_v3_Cookie *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_http_v3_Cookie_set_name(envoy_type_http_v3_Cookie *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void envoy_type_http_v3_Cookie_set_ttl(envoy_type_http_v3_Cookie *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_type_http_v3_Cookie_mutable_ttl(envoy_type_http_v3_Cookie *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_type_http_v3_Cookie_ttl(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_type_http_v3_Cookie_set_ttl(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_type_http_v3_Cookie_set_path(envoy_type_http_v3_Cookie *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_type_http_v3_cookie_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_HTTP_V3_COOKIE_PROTO_UPB_H_ */ |
@ -0,0 +1,72 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/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 "envoy/type/matcher/v3/http_inputs.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_type_matcher_v3_HttpRequestHeaderMatchInput__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit = { |
||||
NULL, |
||||
&envoy_type_matcher_v3_HttpRequestHeaderMatchInput__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_matcher_v3_HttpRequestTrailerMatchInput__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit = { |
||||
NULL, |
||||
&envoy_type_matcher_v3_HttpRequestTrailerMatchInput__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_matcher_v3_HttpResponseHeaderMatchInput__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit = { |
||||
NULL, |
||||
&envoy_type_matcher_v3_HttpResponseHeaderMatchInput__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_matcher_v3_HttpResponseTrailerMatchInput__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit = { |
||||
NULL, |
||||
&envoy_type_matcher_v3_HttpResponseTrailerMatchInput__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[4] = { |
||||
&envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit, |
||||
&envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit, |
||||
&envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit, |
||||
&envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_type_matcher_v3_http_inputs_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
4, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,173 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/matcher/v3/http_inputs.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPB_H_ |
||||
#define ENVOY_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 envoy_type_matcher_v3_HttpRequestHeaderMatchInput; |
||||
struct envoy_type_matcher_v3_HttpRequestTrailerMatchInput; |
||||
struct envoy_type_matcher_v3_HttpResponseHeaderMatchInput; |
||||
struct envoy_type_matcher_v3_HttpResponseTrailerMatchInput; |
||||
typedef struct envoy_type_matcher_v3_HttpRequestHeaderMatchInput envoy_type_matcher_v3_HttpRequestHeaderMatchInput; |
||||
typedef struct envoy_type_matcher_v3_HttpRequestTrailerMatchInput envoy_type_matcher_v3_HttpRequestTrailerMatchInput; |
||||
typedef struct envoy_type_matcher_v3_HttpResponseHeaderMatchInput envoy_type_matcher_v3_HttpResponseHeaderMatchInput; |
||||
typedef struct envoy_type_matcher_v3_HttpResponseTrailerMatchInput envoy_type_matcher_v3_HttpResponseTrailerMatchInput; |
||||
extern const upb_msglayout envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit; |
||||
extern const upb_msglayout envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit; |
||||
extern const upb_msglayout envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit; |
||||
extern const upb_msglayout envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit; |
||||
|
||||
|
||||
/* envoy.type.matcher.v3.HttpRequestHeaderMatchInput */ |
||||
|
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestHeaderMatchInput *envoy_type_matcher_v3_HttpRequestHeaderMatchInput_new(upb_arena *arena) { |
||||
return (envoy_type_matcher_v3_HttpRequestHeaderMatchInput *)_upb_msg_new(&envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestHeaderMatchInput *envoy_type_matcher_v3_HttpRequestHeaderMatchInput_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpRequestHeaderMatchInput *ret = envoy_type_matcher_v3_HttpRequestHeaderMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestHeaderMatchInput *envoy_type_matcher_v3_HttpRequestHeaderMatchInput_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpRequestHeaderMatchInput *ret = envoy_type_matcher_v3_HttpRequestHeaderMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_matcher_v3_HttpRequestHeaderMatchInput_serialize(const envoy_type_matcher_v3_HttpRequestHeaderMatchInput *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_matcher_v3_HttpRequestHeaderMatchInput_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_matcher_v3_HttpRequestHeaderMatchInput_header_name(const envoy_type_matcher_v3_HttpRequestHeaderMatchInput *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_matcher_v3_HttpRequestHeaderMatchInput_set_header_name(envoy_type_matcher_v3_HttpRequestHeaderMatchInput *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
/* envoy.type.matcher.v3.HttpRequestTrailerMatchInput */ |
||||
|
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestTrailerMatchInput *envoy_type_matcher_v3_HttpRequestTrailerMatchInput_new(upb_arena *arena) { |
||||
return (envoy_type_matcher_v3_HttpRequestTrailerMatchInput *)_upb_msg_new(&envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestTrailerMatchInput *envoy_type_matcher_v3_HttpRequestTrailerMatchInput_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpRequestTrailerMatchInput *ret = envoy_type_matcher_v3_HttpRequestTrailerMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpRequestTrailerMatchInput *envoy_type_matcher_v3_HttpRequestTrailerMatchInput_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpRequestTrailerMatchInput *ret = envoy_type_matcher_v3_HttpRequestTrailerMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_matcher_v3_HttpRequestTrailerMatchInput_serialize(const envoy_type_matcher_v3_HttpRequestTrailerMatchInput *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_matcher_v3_HttpRequestTrailerMatchInput_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_matcher_v3_HttpRequestTrailerMatchInput_header_name(const envoy_type_matcher_v3_HttpRequestTrailerMatchInput *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_matcher_v3_HttpRequestTrailerMatchInput_set_header_name(envoy_type_matcher_v3_HttpRequestTrailerMatchInput *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
/* envoy.type.matcher.v3.HttpResponseHeaderMatchInput */ |
||||
|
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseHeaderMatchInput *envoy_type_matcher_v3_HttpResponseHeaderMatchInput_new(upb_arena *arena) { |
||||
return (envoy_type_matcher_v3_HttpResponseHeaderMatchInput *)_upb_msg_new(&envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseHeaderMatchInput *envoy_type_matcher_v3_HttpResponseHeaderMatchInput_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpResponseHeaderMatchInput *ret = envoy_type_matcher_v3_HttpResponseHeaderMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseHeaderMatchInput *envoy_type_matcher_v3_HttpResponseHeaderMatchInput_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpResponseHeaderMatchInput *ret = envoy_type_matcher_v3_HttpResponseHeaderMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_matcher_v3_HttpResponseHeaderMatchInput_serialize(const envoy_type_matcher_v3_HttpResponseHeaderMatchInput *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_matcher_v3_HttpResponseHeaderMatchInput_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_matcher_v3_HttpResponseHeaderMatchInput_header_name(const envoy_type_matcher_v3_HttpResponseHeaderMatchInput *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_matcher_v3_HttpResponseHeaderMatchInput_set_header_name(envoy_type_matcher_v3_HttpResponseHeaderMatchInput *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
/* envoy.type.matcher.v3.HttpResponseTrailerMatchInput */ |
||||
|
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseTrailerMatchInput *envoy_type_matcher_v3_HttpResponseTrailerMatchInput_new(upb_arena *arena) { |
||||
return (envoy_type_matcher_v3_HttpResponseTrailerMatchInput *)_upb_msg_new(&envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseTrailerMatchInput *envoy_type_matcher_v3_HttpResponseTrailerMatchInput_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpResponseTrailerMatchInput *ret = envoy_type_matcher_v3_HttpResponseTrailerMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_matcher_v3_HttpResponseTrailerMatchInput *envoy_type_matcher_v3_HttpResponseTrailerMatchInput_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_matcher_v3_HttpResponseTrailerMatchInput *ret = envoy_type_matcher_v3_HttpResponseTrailerMatchInput_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_matcher_v3_HttpResponseTrailerMatchInput_serialize(const envoy_type_matcher_v3_HttpResponseTrailerMatchInput *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_matcher_v3_HttpResponseTrailerMatchInput_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_matcher_v3_HttpResponseTrailerMatchInput_header_name(const envoy_type_matcher_v3_HttpResponseTrailerMatchInput *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_matcher_v3_HttpResponseTrailerMatchInput_set_header_name(envoy_type_matcher_v3_HttpResponseTrailerMatchInput *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_type_matcher_v3_http_inputs_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPB_H_ */ |
@ -0,0 +1,64 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/hash_policy.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/type/v3/hash_policy.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_type_v3_HashPolicy_submsgs[2] = { |
||||
{.submsg = &envoy_type_v3_HashPolicy_FilterState_msginit}, |
||||
{.submsg = &envoy_type_v3_HashPolicy_SourceIp_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_v3_HashPolicy__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_v3_HashPolicy_msginit = { |
||||
&envoy_type_v3_HashPolicy_submsgs[0], |
||||
&envoy_type_v3_HashPolicy__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_v3_HashPolicy_SourceIp_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, _UPB_MSGEXT_NONE, 0, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_v3_HashPolicy_FilterState__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_v3_HashPolicy_FilterState_msginit = { |
||||
NULL, |
||||
&envoy_type_v3_HashPolicy_FilterState__fields[0], |
||||
UPB_SIZE(8, 16), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[3] = { |
||||
&envoy_type_v3_HashPolicy_msginit, |
||||
&envoy_type_v3_HashPolicy_SourceIp_msginit, |
||||
&envoy_type_v3_HashPolicy_FilterState_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_type_v3_hash_policy_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
3, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,165 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/hash_policy.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_V3_HASH_POLICY_PROTO_UPB_H_ |
||||
#define ENVOY_TYPE_V3_HASH_POLICY_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 envoy_type_v3_HashPolicy; |
||||
struct envoy_type_v3_HashPolicy_SourceIp; |
||||
struct envoy_type_v3_HashPolicy_FilterState; |
||||
typedef struct envoy_type_v3_HashPolicy envoy_type_v3_HashPolicy; |
||||
typedef struct envoy_type_v3_HashPolicy_SourceIp envoy_type_v3_HashPolicy_SourceIp; |
||||
typedef struct envoy_type_v3_HashPolicy_FilterState envoy_type_v3_HashPolicy_FilterState; |
||||
extern const upb_msglayout envoy_type_v3_HashPolicy_msginit; |
||||
extern const upb_msglayout envoy_type_v3_HashPolicy_SourceIp_msginit; |
||||
extern const upb_msglayout envoy_type_v3_HashPolicy_FilterState_msginit; |
||||
|
||||
|
||||
/* envoy.type.v3.HashPolicy */ |
||||
|
||||
UPB_INLINE envoy_type_v3_HashPolicy *envoy_type_v3_HashPolicy_new(upb_arena *arena) { |
||||
return (envoy_type_v3_HashPolicy *)_upb_msg_new(&envoy_type_v3_HashPolicy_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy *envoy_type_v3_HashPolicy_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy *ret = envoy_type_v3_HashPolicy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy *envoy_type_v3_HashPolicy_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy *ret = envoy_type_v3_HashPolicy_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_v3_HashPolicy_serialize(const envoy_type_v3_HashPolicy *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_v3_HashPolicy_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
envoy_type_v3_HashPolicy_policy_specifier_source_ip = 1, |
||||
envoy_type_v3_HashPolicy_policy_specifier_filter_state = 2, |
||||
envoy_type_v3_HashPolicy_policy_specifier_NOT_SET = 0 |
||||
} envoy_type_v3_HashPolicy_policy_specifier_oneofcases; |
||||
UPB_INLINE envoy_type_v3_HashPolicy_policy_specifier_oneofcases envoy_type_v3_HashPolicy_policy_specifier_case(const envoy_type_v3_HashPolicy* msg) { return (envoy_type_v3_HashPolicy_policy_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); } |
||||
|
||||
UPB_INLINE bool envoy_type_v3_HashPolicy_has_source_ip(const envoy_type_v3_HashPolicy *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; } |
||||
UPB_INLINE const envoy_type_v3_HashPolicy_SourceIp* envoy_type_v3_HashPolicy_source_ip(const envoy_type_v3_HashPolicy *msg) { return UPB_READ_ONEOF(msg, const envoy_type_v3_HashPolicy_SourceIp*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); } |
||||
UPB_INLINE bool envoy_type_v3_HashPolicy_has_filter_state(const envoy_type_v3_HashPolicy *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; } |
||||
UPB_INLINE const envoy_type_v3_HashPolicy_FilterState* envoy_type_v3_HashPolicy_filter_state(const envoy_type_v3_HashPolicy *msg) { return UPB_READ_ONEOF(msg, const envoy_type_v3_HashPolicy_FilterState*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); } |
||||
|
||||
UPB_INLINE void envoy_type_v3_HashPolicy_set_source_ip(envoy_type_v3_HashPolicy *msg, envoy_type_v3_HashPolicy_SourceIp* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_type_v3_HashPolicy_SourceIp*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1); |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_HashPolicy_SourceIp* envoy_type_v3_HashPolicy_mutable_source_ip(envoy_type_v3_HashPolicy *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_HashPolicy_SourceIp* sub = (struct envoy_type_v3_HashPolicy_SourceIp*)envoy_type_v3_HashPolicy_source_ip(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_HashPolicy_SourceIp*)_upb_msg_new(&envoy_type_v3_HashPolicy_SourceIp_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_type_v3_HashPolicy_set_source_ip(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_type_v3_HashPolicy_set_filter_state(envoy_type_v3_HashPolicy *msg, envoy_type_v3_HashPolicy_FilterState* value) { |
||||
UPB_WRITE_ONEOF(msg, envoy_type_v3_HashPolicy_FilterState*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2); |
||||
} |
||||
UPB_INLINE struct envoy_type_v3_HashPolicy_FilterState* envoy_type_v3_HashPolicy_mutable_filter_state(envoy_type_v3_HashPolicy *msg, upb_arena *arena) { |
||||
struct envoy_type_v3_HashPolicy_FilterState* sub = (struct envoy_type_v3_HashPolicy_FilterState*)envoy_type_v3_HashPolicy_filter_state(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct envoy_type_v3_HashPolicy_FilterState*)_upb_msg_new(&envoy_type_v3_HashPolicy_FilterState_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_type_v3_HashPolicy_set_filter_state(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* envoy.type.v3.HashPolicy.SourceIp */ |
||||
|
||||
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp *envoy_type_v3_HashPolicy_SourceIp_new(upb_arena *arena) { |
||||
return (envoy_type_v3_HashPolicy_SourceIp *)_upb_msg_new(&envoy_type_v3_HashPolicy_SourceIp_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp *envoy_type_v3_HashPolicy_SourceIp_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy_SourceIp *ret = envoy_type_v3_HashPolicy_SourceIp_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_SourceIp_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp *envoy_type_v3_HashPolicy_SourceIp_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy_SourceIp *ret = envoy_type_v3_HashPolicy_SourceIp_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_SourceIp_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_v3_HashPolicy_SourceIp_serialize(const envoy_type_v3_HashPolicy_SourceIp *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_v3_HashPolicy_SourceIp_msginit, arena, len); |
||||
} |
||||
|
||||
|
||||
|
||||
/* envoy.type.v3.HashPolicy.FilterState */ |
||||
|
||||
UPB_INLINE envoy_type_v3_HashPolicy_FilterState *envoy_type_v3_HashPolicy_FilterState_new(upb_arena *arena) { |
||||
return (envoy_type_v3_HashPolicy_FilterState *)_upb_msg_new(&envoy_type_v3_HashPolicy_FilterState_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy_FilterState *envoy_type_v3_HashPolicy_FilterState_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy_FilterState *ret = envoy_type_v3_HashPolicy_FilterState_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_FilterState_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_v3_HashPolicy_FilterState *envoy_type_v3_HashPolicy_FilterState_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HashPolicy_FilterState *ret = envoy_type_v3_HashPolicy_FilterState_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_v3_HashPolicy_FilterState_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_v3_HashPolicy_FilterState_serialize(const envoy_type_v3_HashPolicy_FilterState *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_v3_HashPolicy_FilterState_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview envoy_type_v3_HashPolicy_FilterState_key(const envoy_type_v3_HashPolicy_FilterState *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); } |
||||
|
||||
UPB_INLINE void envoy_type_v3_HashPolicy_FilterState_set_key(envoy_type_v3_HashPolicy_FilterState *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_type_v3_hash_policy_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_V3_HASH_POLICY_PROTO_UPB_H_ */ |
@ -0,0 +1,40 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/http_status.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/type/v3/http_status.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_field envoy_type_v3_HttpStatus__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_v3_HttpStatus_msginit = { |
||||
NULL, |
||||
&envoy_type_v3_HttpStatus__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_type_v3_HttpStatus_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_type_v3_http_status_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,128 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/http_status.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_V3_HTTP_STATUS_PROTO_UPB_H_ |
||||
#define ENVOY_TYPE_V3_HTTP_STATUS_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 envoy_type_v3_HttpStatus; |
||||
typedef struct envoy_type_v3_HttpStatus envoy_type_v3_HttpStatus; |
||||
extern const upb_msglayout envoy_type_v3_HttpStatus_msginit; |
||||
|
||||
typedef enum { |
||||
envoy_type_v3_Empty = 0, |
||||
envoy_type_v3_Continue = 100, |
||||
envoy_type_v3_OK = 200, |
||||
envoy_type_v3_Created = 201, |
||||
envoy_type_v3_Accepted = 202, |
||||
envoy_type_v3_NonAuthoritativeInformation = 203, |
||||
envoy_type_v3_NoContent = 204, |
||||
envoy_type_v3_ResetContent = 205, |
||||
envoy_type_v3_PartialContent = 206, |
||||
envoy_type_v3_MultiStatus = 207, |
||||
envoy_type_v3_AlreadyReported = 208, |
||||
envoy_type_v3_IMUsed = 226, |
||||
envoy_type_v3_MultipleChoices = 300, |
||||
envoy_type_v3_MovedPermanently = 301, |
||||
envoy_type_v3_Found = 302, |
||||
envoy_type_v3_SeeOther = 303, |
||||
envoy_type_v3_NotModified = 304, |
||||
envoy_type_v3_UseProxy = 305, |
||||
envoy_type_v3_TemporaryRedirect = 307, |
||||
envoy_type_v3_PermanentRedirect = 308, |
||||
envoy_type_v3_BadRequest = 400, |
||||
envoy_type_v3_Unauthorized = 401, |
||||
envoy_type_v3_PaymentRequired = 402, |
||||
envoy_type_v3_Forbidden = 403, |
||||
envoy_type_v3_NotFound = 404, |
||||
envoy_type_v3_MethodNotAllowed = 405, |
||||
envoy_type_v3_NotAcceptable = 406, |
||||
envoy_type_v3_ProxyAuthenticationRequired = 407, |
||||
envoy_type_v3_RequestTimeout = 408, |
||||
envoy_type_v3_Conflict = 409, |
||||
envoy_type_v3_Gone = 410, |
||||
envoy_type_v3_LengthRequired = 411, |
||||
envoy_type_v3_PreconditionFailed = 412, |
||||
envoy_type_v3_PayloadTooLarge = 413, |
||||
envoy_type_v3_URITooLong = 414, |
||||
envoy_type_v3_UnsupportedMediaType = 415, |
||||
envoy_type_v3_RangeNotSatisfiable = 416, |
||||
envoy_type_v3_ExpectationFailed = 417, |
||||
envoy_type_v3_MisdirectedRequest = 421, |
||||
envoy_type_v3_UnprocessableEntity = 422, |
||||
envoy_type_v3_Locked = 423, |
||||
envoy_type_v3_FailedDependency = 424, |
||||
envoy_type_v3_UpgradeRequired = 426, |
||||
envoy_type_v3_PreconditionRequired = 428, |
||||
envoy_type_v3_TooManyRequests = 429, |
||||
envoy_type_v3_RequestHeaderFieldsTooLarge = 431, |
||||
envoy_type_v3_InternalServerError = 500, |
||||
envoy_type_v3_NotImplemented = 501, |
||||
envoy_type_v3_BadGateway = 502, |
||||
envoy_type_v3_ServiceUnavailable = 503, |
||||
envoy_type_v3_GatewayTimeout = 504, |
||||
envoy_type_v3_HTTPVersionNotSupported = 505, |
||||
envoy_type_v3_VariantAlsoNegotiates = 506, |
||||
envoy_type_v3_InsufficientStorage = 507, |
||||
envoy_type_v3_LoopDetected = 508, |
||||
envoy_type_v3_NotExtended = 510, |
||||
envoy_type_v3_NetworkAuthenticationRequired = 511 |
||||
} envoy_type_v3_StatusCode; |
||||
|
||||
|
||||
/* envoy.type.v3.HttpStatus */ |
||||
|
||||
UPB_INLINE envoy_type_v3_HttpStatus *envoy_type_v3_HttpStatus_new(upb_arena *arena) { |
||||
return (envoy_type_v3_HttpStatus *)_upb_msg_new(&envoy_type_v3_HttpStatus_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_v3_HttpStatus *envoy_type_v3_HttpStatus_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HttpStatus *ret = envoy_type_v3_HttpStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_v3_HttpStatus_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_v3_HttpStatus *envoy_type_v3_HttpStatus_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_HttpStatus *ret = envoy_type_v3_HttpStatus_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_v3_HttpStatus_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_v3_HttpStatus_serialize(const envoy_type_v3_HttpStatus *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_v3_HttpStatus_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int32_t envoy_type_v3_HttpStatus_code(const envoy_type_v3_HttpStatus *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); } |
||||
|
||||
UPB_INLINE void envoy_type_v3_HttpStatus_set_code(envoy_type_v3_HttpStatus *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_type_v3_http_status_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_V3_HTTP_STATUS_PROTO_UPB_H_ */ |
@ -0,0 +1,24 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/ratelimit_unit.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/type/v3/ratelimit_unit.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_msglayout_file envoy_type_v3_ratelimit_unit_proto_upb_file_layout = { |
||||
NULL, |
||||
NULL, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,40 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/ratelimit_unit.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H_ |
||||
#define ENVOY_TYPE_V3_RATELIMIT_UNIT_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 |
||||
|
||||
typedef enum { |
||||
envoy_type_v3_UNKNOWN = 0, |
||||
envoy_type_v3_SECOND = 1, |
||||
envoy_type_v3_MINUTE = 2, |
||||
envoy_type_v3_HOUR = 3, |
||||
envoy_type_v3_DAY = 4 |
||||
} envoy_type_v3_RateLimitUnit; |
||||
|
||||
|
||||
extern const upb_msglayout_file envoy_type_v3_ratelimit_unit_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_V3_RATELIMIT_UNIT_PROTO_UPB_H_ */ |
@ -0,0 +1,49 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/token_bucket.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "envoy/type/v3/token_bucket.upb.h" |
||||
#include "google/protobuf/duration.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "udpa/annotations/status.upb.h" |
||||
#include "udpa/annotations/versioning.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub envoy_type_v3_TokenBucket_submsgs[2] = { |
||||
{.submsg = &google_protobuf_Duration_msginit}, |
||||
{.submsg = &google_protobuf_UInt32Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field envoy_type_v3_TokenBucket__fields[3] = { |
||||
{1, UPB_SIZE(4, 4), 0, 0, 13, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 1, 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(12, 16), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout envoy_type_v3_TokenBucket_msginit = { |
||||
&envoy_type_v3_TokenBucket_submsgs[0], |
||||
&envoy_type_v3_TokenBucket__fields[0], |
||||
UPB_SIZE(16, 24), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[1] = { |
||||
&envoy_type_v3_TokenBucket_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file envoy_type_v3_token_bucket_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
1, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,102 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* envoy/type/v3/token_bucket.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H_ |
||||
#define ENVOY_TYPE_V3_TOKEN_BUCKET_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 envoy_type_v3_TokenBucket; |
||||
typedef struct envoy_type_v3_TokenBucket envoy_type_v3_TokenBucket; |
||||
extern const upb_msglayout envoy_type_v3_TokenBucket_msginit; |
||||
struct google_protobuf_Duration; |
||||
struct google_protobuf_UInt32Value; |
||||
extern const upb_msglayout google_protobuf_Duration_msginit; |
||||
extern const upb_msglayout google_protobuf_UInt32Value_msginit; |
||||
|
||||
|
||||
/* envoy.type.v3.TokenBucket */ |
||||
|
||||
UPB_INLINE envoy_type_v3_TokenBucket *envoy_type_v3_TokenBucket_new(upb_arena *arena) { |
||||
return (envoy_type_v3_TokenBucket *)_upb_msg_new(&envoy_type_v3_TokenBucket_msginit, arena); |
||||
} |
||||
UPB_INLINE envoy_type_v3_TokenBucket *envoy_type_v3_TokenBucket_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_TokenBucket *ret = envoy_type_v3_TokenBucket_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &envoy_type_v3_TokenBucket_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE envoy_type_v3_TokenBucket *envoy_type_v3_TokenBucket_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
envoy_type_v3_TokenBucket *ret = envoy_type_v3_TokenBucket_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &envoy_type_v3_TokenBucket_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *envoy_type_v3_TokenBucket_serialize(const envoy_type_v3_TokenBucket *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &envoy_type_v3_TokenBucket_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE uint32_t envoy_type_v3_TokenBucket_max_tokens(const envoy_type_v3_TokenBucket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); } |
||||
UPB_INLINE bool envoy_type_v3_TokenBucket_has_tokens_per_fill(const envoy_type_v3_TokenBucket *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_type_v3_TokenBucket_tokens_per_fill(const envoy_type_v3_TokenBucket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_UInt32Value*); } |
||||
UPB_INLINE bool envoy_type_v3_TokenBucket_has_fill_interval(const envoy_type_v3_TokenBucket *msg) { return _upb_hasbit(msg, 2); } |
||||
UPB_INLINE const struct google_protobuf_Duration* envoy_type_v3_TokenBucket_fill_interval(const envoy_type_v3_TokenBucket *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Duration*); } |
||||
|
||||
UPB_INLINE void envoy_type_v3_TokenBucket_set_max_tokens(envoy_type_v3_TokenBucket *msg, uint32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value; |
||||
} |
||||
UPB_INLINE void envoy_type_v3_TokenBucket_set_tokens_per_fill(envoy_type_v3_TokenBucket *msg, struct google_protobuf_UInt32Value* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* envoy_type_v3_TokenBucket_mutable_tokens_per_fill(envoy_type_v3_TokenBucket *msg, upb_arena *arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_type_v3_TokenBucket_tokens_per_fill(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_msg_new(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_type_v3_TokenBucket_set_tokens_per_fill(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void envoy_type_v3_TokenBucket_set_fill_interval(envoy_type_v3_TokenBucket *msg, struct google_protobuf_Duration* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_Duration*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_Duration* envoy_type_v3_TokenBucket_mutable_fill_interval(envoy_type_v3_TokenBucket *msg, upb_arena *arena) { |
||||
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_type_v3_TokenBucket_fill_interval(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena); |
||||
if (!sub) return NULL; |
||||
envoy_type_v3_TokenBucket_set_fill_interval(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_msglayout_file envoy_type_v3_token_bucket_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H_ */ |
@ -1,102 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/api/expr/v1alpha1/eval.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "google/api/expr/v1alpha1/eval.upb.h" |
||||
#include "google/api/expr/v1alpha1/value.upb.h" |
||||
#include "google/rpc/status.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_EvalState_submsgs[2] = { |
||||
{.submsg = &google_api_expr_v1alpha1_EvalState_Result_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_ExprValue_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_EvalState__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 1, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(4, 8), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_EvalState_msginit = { |
||||
&google_api_expr_v1alpha1_EvalState_submsgs[0], |
||||
&google_api_expr_v1alpha1_EvalState__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_EvalState_Result__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 3, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 3, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_EvalState_Result_msginit = { |
||||
NULL, |
||||
&google_api_expr_v1alpha1_EvalState_Result__fields[0], |
||||
UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_ExprValue_submsgs[3] = { |
||||
{.submsg = &google_api_expr_v1alpha1_ErrorSet_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_UnknownSet_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_ExprValue__fields[3] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_ExprValue_msginit = { |
||||
&google_api_expr_v1alpha1_ExprValue_submsgs[0], |
||||
&google_api_expr_v1alpha1_ExprValue__fields[0], |
||||
UPB_SIZE(8, 16), 3, _UPB_MSGEXT_NONE, 3, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_ErrorSet_submsgs[1] = { |
||||
{.submsg = &google_rpc_Status_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_ErrorSet__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_ErrorSet_msginit = { |
||||
&google_api_expr_v1alpha1_ErrorSet_submsgs[0], |
||||
&google_api_expr_v1alpha1_ErrorSet__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_UnknownSet__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 3, _UPB_MODE_ARRAY | _UPB_MODE_IS_PACKED | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_UnknownSet_msginit = { |
||||
NULL, |
||||
&google_api_expr_v1alpha1_UnknownSet__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[5] = { |
||||
&google_api_expr_v1alpha1_EvalState_msginit, |
||||
&google_api_expr_v1alpha1_EvalState_Result_msginit, |
||||
&google_api_expr_v1alpha1_ExprValue_msginit, |
||||
&google_api_expr_v1alpha1_ErrorSet_msginit, |
||||
&google_api_expr_v1alpha1_UnknownSet_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file google_api_expr_v1alpha1_eval_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
5, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,306 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/api/expr/v1alpha1/eval.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef GOOGLE_API_EXPR_V1ALPHA1_EVAL_PROTO_UPB_H_ |
||||
#define GOOGLE_API_EXPR_V1ALPHA1_EVAL_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 google_api_expr_v1alpha1_EvalState; |
||||
struct google_api_expr_v1alpha1_EvalState_Result; |
||||
struct google_api_expr_v1alpha1_ExprValue; |
||||
struct google_api_expr_v1alpha1_ErrorSet; |
||||
struct google_api_expr_v1alpha1_UnknownSet; |
||||
typedef struct google_api_expr_v1alpha1_EvalState google_api_expr_v1alpha1_EvalState; |
||||
typedef struct google_api_expr_v1alpha1_EvalState_Result google_api_expr_v1alpha1_EvalState_Result; |
||||
typedef struct google_api_expr_v1alpha1_ExprValue google_api_expr_v1alpha1_ExprValue; |
||||
typedef struct google_api_expr_v1alpha1_ErrorSet google_api_expr_v1alpha1_ErrorSet; |
||||
typedef struct google_api_expr_v1alpha1_UnknownSet google_api_expr_v1alpha1_UnknownSet; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_EvalState_msginit; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_EvalState_Result_msginit; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_ExprValue_msginit; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_ErrorSet_msginit; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_UnknownSet_msginit; |
||||
struct google_api_expr_v1alpha1_Value; |
||||
struct google_rpc_Status; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_Value_msginit; |
||||
extern const upb_msglayout google_rpc_Status_msginit; |
||||
|
||||
|
||||
/* google.api.expr.v1alpha1.EvalState */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState *google_api_expr_v1alpha1_EvalState_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_EvalState *)_upb_msg_new(&google_api_expr_v1alpha1_EvalState_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState *google_api_expr_v1alpha1_EvalState_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_EvalState *ret = google_api_expr_v1alpha1_EvalState_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_EvalState_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState *google_api_expr_v1alpha1_EvalState_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_EvalState *ret = google_api_expr_v1alpha1_EvalState_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_EvalState_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_EvalState_serialize(const google_api_expr_v1alpha1_EvalState *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_EvalState_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool google_api_expr_v1alpha1_EvalState_has_values(const google_api_expr_v1alpha1_EvalState *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const google_api_expr_v1alpha1_ExprValue* const* google_api_expr_v1alpha1_EvalState_values(const google_api_expr_v1alpha1_EvalState *msg, size_t *len) { return (const google_api_expr_v1alpha1_ExprValue* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
UPB_INLINE bool google_api_expr_v1alpha1_EvalState_has_results(const google_api_expr_v1alpha1_EvalState *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const google_api_expr_v1alpha1_EvalState_Result* const* google_api_expr_v1alpha1_EvalState_results(const google_api_expr_v1alpha1_EvalState *msg, size_t *len) { return (const google_api_expr_v1alpha1_EvalState_Result* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); } |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue** google_api_expr_v1alpha1_EvalState_mutable_values(google_api_expr_v1alpha1_EvalState *msg, size_t *len) { |
||||
return (google_api_expr_v1alpha1_ExprValue**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue** google_api_expr_v1alpha1_EvalState_resize_values(google_api_expr_v1alpha1_EvalState *msg, size_t len, upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_ExprValue**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_ExprValue* google_api_expr_v1alpha1_EvalState_add_values(google_api_expr_v1alpha1_EvalState *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_ExprValue* sub = (struct google_api_expr_v1alpha1_ExprValue*)_upb_msg_new(&google_api_expr_v1alpha1_ExprValue_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; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState_Result** google_api_expr_v1alpha1_EvalState_mutable_results(google_api_expr_v1alpha1_EvalState *msg, size_t *len) { |
||||
return (google_api_expr_v1alpha1_EvalState_Result**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState_Result** google_api_expr_v1alpha1_EvalState_resize_results(google_api_expr_v1alpha1_EvalState *msg, size_t len, upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_EvalState_Result**)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_EvalState_Result* google_api_expr_v1alpha1_EvalState_add_results(google_api_expr_v1alpha1_EvalState *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_EvalState_Result* sub = (struct google_api_expr_v1alpha1_EvalState_Result*)_upb_msg_new(&google_api_expr_v1alpha1_EvalState_Result_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; |
||||
} |
||||
|
||||
/* google.api.expr.v1alpha1.EvalState.Result */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState_Result *google_api_expr_v1alpha1_EvalState_Result_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_EvalState_Result *)_upb_msg_new(&google_api_expr_v1alpha1_EvalState_Result_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState_Result *google_api_expr_v1alpha1_EvalState_Result_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_EvalState_Result *ret = google_api_expr_v1alpha1_EvalState_Result_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_EvalState_Result_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_EvalState_Result *google_api_expr_v1alpha1_EvalState_Result_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_EvalState_Result *ret = google_api_expr_v1alpha1_EvalState_Result_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_EvalState_Result_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_EvalState_Result_serialize(const google_api_expr_v1alpha1_EvalState_Result *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_EvalState_Result_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int64_t google_api_expr_v1alpha1_EvalState_Result_expr(const google_api_expr_v1alpha1_EvalState_Result *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t); } |
||||
UPB_INLINE int64_t google_api_expr_v1alpha1_EvalState_Result_value(const google_api_expr_v1alpha1_EvalState_Result *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); } |
||||
|
||||
UPB_INLINE void google_api_expr_v1alpha1_EvalState_Result_set_expr(google_api_expr_v1alpha1_EvalState_Result *msg, int64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value; |
||||
} |
||||
UPB_INLINE void google_api_expr_v1alpha1_EvalState_Result_set_value(google_api_expr_v1alpha1_EvalState_Result *msg, int64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value; |
||||
} |
||||
|
||||
/* google.api.expr.v1alpha1.ExprValue */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue *google_api_expr_v1alpha1_ExprValue_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_ExprValue *)_upb_msg_new(&google_api_expr_v1alpha1_ExprValue_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue *google_api_expr_v1alpha1_ExprValue_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_ExprValue *ret = google_api_expr_v1alpha1_ExprValue_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_ExprValue_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue *google_api_expr_v1alpha1_ExprValue_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_ExprValue *ret = google_api_expr_v1alpha1_ExprValue_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_ExprValue_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_ExprValue_serialize(const google_api_expr_v1alpha1_ExprValue *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_ExprValue_msginit, arena, len); |
||||
} |
||||
|
||||
typedef enum { |
||||
google_api_expr_v1alpha1_ExprValue_kind_value = 1, |
||||
google_api_expr_v1alpha1_ExprValue_kind_error = 2, |
||||
google_api_expr_v1alpha1_ExprValue_kind_unknown = 3, |
||||
google_api_expr_v1alpha1_ExprValue_kind_NOT_SET = 0 |
||||
} google_api_expr_v1alpha1_ExprValue_kind_oneofcases; |
||||
UPB_INLINE google_api_expr_v1alpha1_ExprValue_kind_oneofcases google_api_expr_v1alpha1_ExprValue_kind_case(const google_api_expr_v1alpha1_ExprValue* msg) { return (google_api_expr_v1alpha1_ExprValue_kind_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 8), int32_t); } |
||||
|
||||
UPB_INLINE bool google_api_expr_v1alpha1_ExprValue_has_value(const google_api_expr_v1alpha1_ExprValue *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 1; } |
||||
UPB_INLINE const struct google_api_expr_v1alpha1_Value* google_api_expr_v1alpha1_ExprValue_value(const google_api_expr_v1alpha1_ExprValue *msg) { return UPB_READ_ONEOF(msg, const struct google_api_expr_v1alpha1_Value*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 1, NULL); } |
||||
UPB_INLINE bool google_api_expr_v1alpha1_ExprValue_has_error(const google_api_expr_v1alpha1_ExprValue *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 2; } |
||||
UPB_INLINE const google_api_expr_v1alpha1_ErrorSet* google_api_expr_v1alpha1_ExprValue_error(const google_api_expr_v1alpha1_ExprValue *msg) { return UPB_READ_ONEOF(msg, const google_api_expr_v1alpha1_ErrorSet*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 2, NULL); } |
||||
UPB_INLINE bool google_api_expr_v1alpha1_ExprValue_has_unknown(const google_api_expr_v1alpha1_ExprValue *msg) { return _upb_getoneofcase(msg, UPB_SIZE(4, 8)) == 3; } |
||||
UPB_INLINE const google_api_expr_v1alpha1_UnknownSet* google_api_expr_v1alpha1_ExprValue_unknown(const google_api_expr_v1alpha1_ExprValue *msg) { return UPB_READ_ONEOF(msg, const google_api_expr_v1alpha1_UnknownSet*, UPB_SIZE(0, 0), UPB_SIZE(4, 8), 3, NULL); } |
||||
|
||||
UPB_INLINE void google_api_expr_v1alpha1_ExprValue_set_value(google_api_expr_v1alpha1_ExprValue *msg, struct google_api_expr_v1alpha1_Value* value) { |
||||
UPB_WRITE_ONEOF(msg, struct google_api_expr_v1alpha1_Value*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 1); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_Value* google_api_expr_v1alpha1_ExprValue_mutable_value(google_api_expr_v1alpha1_ExprValue *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_Value* sub = (struct google_api_expr_v1alpha1_Value*)google_api_expr_v1alpha1_ExprValue_value(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_api_expr_v1alpha1_Value*)_upb_msg_new(&google_api_expr_v1alpha1_Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
google_api_expr_v1alpha1_ExprValue_set_value(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void google_api_expr_v1alpha1_ExprValue_set_error(google_api_expr_v1alpha1_ExprValue *msg, google_api_expr_v1alpha1_ErrorSet* value) { |
||||
UPB_WRITE_ONEOF(msg, google_api_expr_v1alpha1_ErrorSet*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 2); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_ErrorSet* google_api_expr_v1alpha1_ExprValue_mutable_error(google_api_expr_v1alpha1_ExprValue *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_ErrorSet* sub = (struct google_api_expr_v1alpha1_ErrorSet*)google_api_expr_v1alpha1_ExprValue_error(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_api_expr_v1alpha1_ErrorSet*)_upb_msg_new(&google_api_expr_v1alpha1_ErrorSet_msginit, arena); |
||||
if (!sub) return NULL; |
||||
google_api_expr_v1alpha1_ExprValue_set_error(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void google_api_expr_v1alpha1_ExprValue_set_unknown(google_api_expr_v1alpha1_ExprValue *msg, google_api_expr_v1alpha1_UnknownSet* value) { |
||||
UPB_WRITE_ONEOF(msg, google_api_expr_v1alpha1_UnknownSet*, UPB_SIZE(0, 0), value, UPB_SIZE(4, 8), 3); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_UnknownSet* google_api_expr_v1alpha1_ExprValue_mutable_unknown(google_api_expr_v1alpha1_ExprValue *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_UnknownSet* sub = (struct google_api_expr_v1alpha1_UnknownSet*)google_api_expr_v1alpha1_ExprValue_unknown(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_api_expr_v1alpha1_UnknownSet*)_upb_msg_new(&google_api_expr_v1alpha1_UnknownSet_msginit, arena); |
||||
if (!sub) return NULL; |
||||
google_api_expr_v1alpha1_ExprValue_set_unknown(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* google.api.expr.v1alpha1.ErrorSet */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_ErrorSet *google_api_expr_v1alpha1_ErrorSet_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_ErrorSet *)_upb_msg_new(&google_api_expr_v1alpha1_ErrorSet_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_ErrorSet *google_api_expr_v1alpha1_ErrorSet_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_ErrorSet *ret = google_api_expr_v1alpha1_ErrorSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_ErrorSet_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_ErrorSet *google_api_expr_v1alpha1_ErrorSet_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_ErrorSet *ret = google_api_expr_v1alpha1_ErrorSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_ErrorSet_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_ErrorSet_serialize(const google_api_expr_v1alpha1_ErrorSet *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_ErrorSet_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool google_api_expr_v1alpha1_ErrorSet_has_errors(const google_api_expr_v1alpha1_ErrorSet *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct google_rpc_Status* const* google_api_expr_v1alpha1_ErrorSet_errors(const google_api_expr_v1alpha1_ErrorSet *msg, size_t *len) { return (const struct google_rpc_Status* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE struct google_rpc_Status** google_api_expr_v1alpha1_ErrorSet_mutable_errors(google_api_expr_v1alpha1_ErrorSet *msg, size_t *len) { |
||||
return (struct google_rpc_Status**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE struct google_rpc_Status** google_api_expr_v1alpha1_ErrorSet_resize_errors(google_api_expr_v1alpha1_ErrorSet *msg, size_t len, upb_arena *arena) { |
||||
return (struct google_rpc_Status**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct google_rpc_Status* google_api_expr_v1alpha1_ErrorSet_add_errors(google_api_expr_v1alpha1_ErrorSet *msg, upb_arena *arena) { |
||||
struct google_rpc_Status* sub = (struct google_rpc_Status*)_upb_msg_new(&google_rpc_Status_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; |
||||
} |
||||
|
||||
/* google.api.expr.v1alpha1.UnknownSet */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_UnknownSet *google_api_expr_v1alpha1_UnknownSet_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_UnknownSet *)_upb_msg_new(&google_api_expr_v1alpha1_UnknownSet_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_UnknownSet *google_api_expr_v1alpha1_UnknownSet_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_UnknownSet *ret = google_api_expr_v1alpha1_UnknownSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_UnknownSet_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_UnknownSet *google_api_expr_v1alpha1_UnknownSet_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_UnknownSet *ret = google_api_expr_v1alpha1_UnknownSet_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_UnknownSet_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_UnknownSet_serialize(const google_api_expr_v1alpha1_UnknownSet *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_UnknownSet_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int64_t const* google_api_expr_v1alpha1_UnknownSet_exprs(const google_api_expr_v1alpha1_UnknownSet *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
|
||||
UPB_INLINE int64_t* google_api_expr_v1alpha1_UnknownSet_mutable_exprs(google_api_expr_v1alpha1_UnknownSet *msg, size_t *len) { |
||||
return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE int64_t* google_api_expr_v1alpha1_UnknownSet_resize_exprs(google_api_expr_v1alpha1_UnknownSet *msg, size_t len, upb_arena *arena) { |
||||
return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, 3, arena); |
||||
} |
||||
UPB_INLINE bool google_api_expr_v1alpha1_UnknownSet_add_exprs(google_api_expr_v1alpha1_UnknownSet *msg, int64_t val, upb_arena *arena) { |
||||
return _upb_array_append_accessor2(msg, UPB_SIZE(0, 0), 3, &val, |
||||
arena); |
||||
} |
||||
|
||||
extern const upb_msglayout_file google_api_expr_v1alpha1_eval_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* GOOGLE_API_EXPR_V1ALPHA1_EVAL_PROTO_UPB_H_ */ |
@ -1,56 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/api/expr/v1alpha1/explain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "google/api/expr/v1alpha1/explain.upb.h" |
||||
#include "google/api/expr/v1alpha1/value.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_Explain_submsgs[2] = { |
||||
{.submsg = &google_api_expr_v1alpha1_Explain_ExprStep_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_Explain__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 1, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(4, 8), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_Explain_msginit = { |
||||
&google_api_expr_v1alpha1_Explain_submsgs[0], |
||||
&google_api_expr_v1alpha1_Explain__fields[0], |
||||
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_Explain_ExprStep__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 3, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 5, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_Explain_ExprStep_msginit = { |
||||
NULL, |
||||
&google_api_expr_v1alpha1_Explain_ExprStep__fields[0], |
||||
UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[2] = { |
||||
&google_api_expr_v1alpha1_Explain_msginit, |
||||
&google_api_expr_v1alpha1_Explain_ExprStep_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file google_api_expr_v1alpha1_explain_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
2, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,135 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/api/expr/v1alpha1/explain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef GOOGLE_API_EXPR_V1ALPHA1_EXPLAIN_PROTO_UPB_H_ |
||||
#define GOOGLE_API_EXPR_V1ALPHA1_EXPLAIN_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 google_api_expr_v1alpha1_Explain; |
||||
struct google_api_expr_v1alpha1_Explain_ExprStep; |
||||
typedef struct google_api_expr_v1alpha1_Explain google_api_expr_v1alpha1_Explain; |
||||
typedef struct google_api_expr_v1alpha1_Explain_ExprStep google_api_expr_v1alpha1_Explain_ExprStep; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_Explain_msginit; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_Explain_ExprStep_msginit; |
||||
struct google_api_expr_v1alpha1_Value; |
||||
extern const upb_msglayout google_api_expr_v1alpha1_Value_msginit; |
||||
|
||||
|
||||
/* google.api.expr.v1alpha1.Explain */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_Explain *google_api_expr_v1alpha1_Explain_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_Explain *)_upb_msg_new(&google_api_expr_v1alpha1_Explain_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain *google_api_expr_v1alpha1_Explain_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_Explain *ret = google_api_expr_v1alpha1_Explain_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_Explain_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain *google_api_expr_v1alpha1_Explain_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_Explain *ret = google_api_expr_v1alpha1_Explain_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_Explain_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_Explain_serialize(const google_api_expr_v1alpha1_Explain *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_Explain_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE bool google_api_expr_v1alpha1_Explain_has_values(const google_api_expr_v1alpha1_Explain *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
||||
UPB_INLINE const struct google_api_expr_v1alpha1_Value* const* google_api_expr_v1alpha1_Explain_values(const google_api_expr_v1alpha1_Explain *msg, size_t *len) { return (const struct google_api_expr_v1alpha1_Value* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
||||
UPB_INLINE bool google_api_expr_v1alpha1_Explain_has_expr_steps(const google_api_expr_v1alpha1_Explain *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); } |
||||
UPB_INLINE const google_api_expr_v1alpha1_Explain_ExprStep* const* google_api_expr_v1alpha1_Explain_expr_steps(const google_api_expr_v1alpha1_Explain *msg, size_t *len) { return (const google_api_expr_v1alpha1_Explain_ExprStep* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); } |
||||
|
||||
UPB_INLINE struct google_api_expr_v1alpha1_Value** google_api_expr_v1alpha1_Explain_mutable_values(google_api_expr_v1alpha1_Explain *msg, size_t *len) { |
||||
return (struct google_api_expr_v1alpha1_Value**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_Value** google_api_expr_v1alpha1_Explain_resize_values(google_api_expr_v1alpha1_Explain *msg, size_t len, upb_arena *arena) { |
||||
return (struct google_api_expr_v1alpha1_Value**)_upb_array_resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_Value* google_api_expr_v1alpha1_Explain_add_values(google_api_expr_v1alpha1_Explain *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_Value* sub = (struct google_api_expr_v1alpha1_Value*)_upb_msg_new(&google_api_expr_v1alpha1_Value_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; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain_ExprStep** google_api_expr_v1alpha1_Explain_mutable_expr_steps(google_api_expr_v1alpha1_Explain *msg, size_t *len) { |
||||
return (google_api_expr_v1alpha1_Explain_ExprStep**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain_ExprStep** google_api_expr_v1alpha1_Explain_resize_expr_steps(google_api_expr_v1alpha1_Explain *msg, size_t len, upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_Explain_ExprStep**)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_Explain_ExprStep* google_api_expr_v1alpha1_Explain_add_expr_steps(google_api_expr_v1alpha1_Explain *msg, upb_arena *arena) { |
||||
struct google_api_expr_v1alpha1_Explain_ExprStep* sub = (struct google_api_expr_v1alpha1_Explain_ExprStep*)_upb_msg_new(&google_api_expr_v1alpha1_Explain_ExprStep_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; |
||||
} |
||||
|
||||
/* google.api.expr.v1alpha1.Explain.ExprStep */ |
||||
|
||||
UPB_INLINE google_api_expr_v1alpha1_Explain_ExprStep *google_api_expr_v1alpha1_Explain_ExprStep_new(upb_arena *arena) { |
||||
return (google_api_expr_v1alpha1_Explain_ExprStep *)_upb_msg_new(&google_api_expr_v1alpha1_Explain_ExprStep_msginit, arena); |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain_ExprStep *google_api_expr_v1alpha1_Explain_ExprStep_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_Explain_ExprStep *ret = google_api_expr_v1alpha1_Explain_ExprStep_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &google_api_expr_v1alpha1_Explain_ExprStep_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE google_api_expr_v1alpha1_Explain_ExprStep *google_api_expr_v1alpha1_Explain_ExprStep_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
google_api_expr_v1alpha1_Explain_ExprStep *ret = google_api_expr_v1alpha1_Explain_ExprStep_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &google_api_expr_v1alpha1_Explain_ExprStep_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *google_api_expr_v1alpha1_Explain_ExprStep_serialize(const google_api_expr_v1alpha1_Explain_ExprStep *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &google_api_expr_v1alpha1_Explain_ExprStep_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE int64_t google_api_expr_v1alpha1_Explain_ExprStep_id(const google_api_expr_v1alpha1_Explain_ExprStep *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t); } |
||||
UPB_INLINE int32_t google_api_expr_v1alpha1_Explain_ExprStep_value_index(const google_api_expr_v1alpha1_Explain_ExprStep *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); } |
||||
|
||||
UPB_INLINE void google_api_expr_v1alpha1_Explain_ExprStep_set_id(google_api_expr_v1alpha1_Explain_ExprStep *msg, int64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value; |
||||
} |
||||
UPB_INLINE void google_api_expr_v1alpha1_Explain_ExprStep_set_value_index(google_api_expr_v1alpha1_Explain_ExprStep *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value; |
||||
} |
||||
|
||||
extern const upb_msglayout_file google_api_expr_v1alpha1_explain_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* GOOGLE_API_EXPR_V1ALPHA1_EXPLAIN_PROTO_UPB_H_ */ |
@ -1,115 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/api/expr/v1alpha1/value.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "google/api/expr/v1alpha1/value.upb.h" |
||||
#include "google/protobuf/any.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_Value_submsgs[4] = { |
||||
{.submsg = &google_api_expr_v1alpha1_EnumValue_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_ListValue_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_MapValue_msginit}, |
||||
{.submsg = &google_protobuf_Any_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_Value__fields[12] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 14, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 8, _UPB_MODE_SCALAR | (_UPB_REP_1BYTE << _UPB_REP_SHIFT)}, |
||||
{3, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 3, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{4, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 4, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{5, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 1, _UPB_MODE_SCALAR | (_UPB_REP_8BYTE << _UPB_REP_SHIFT)}, |
||||
{6, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{7, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 12, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{9, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{10, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 3, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{11, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 2, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{12, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 1, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{15, UPB_SIZE(0, 0), UPB_SIZE(-9, -17), 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_Value_msginit = { |
||||
&google_api_expr_v1alpha1_Value_submsgs[0], |
||||
&google_api_expr_v1alpha1_Value__fields[0], |
||||
UPB_SIZE(16, 32), 12, _UPB_MSGEXT_NONE, 7, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_EnumValue__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR | (_UPB_REP_STRVIEW << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(0, 0), 0, 0, 5, _UPB_MODE_SCALAR | (_UPB_REP_4BYTE << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_EnumValue_msginit = { |
||||
NULL, |
||||
&google_api_expr_v1alpha1_EnumValue__fields[0], |
||||
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_ListValue_submsgs[1] = { |
||||
{.submsg = &google_api_expr_v1alpha1_Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_ListValue__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_ListValue_msginit = { |
||||
&google_api_expr_v1alpha1_ListValue_submsgs[0], |
||||
&google_api_expr_v1alpha1_ListValue__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_MapValue_submsgs[1] = { |
||||
{.submsg = &google_api_expr_v1alpha1_MapValue_Entry_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_MapValue__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 11, _UPB_MODE_ARRAY | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_MapValue_msginit = { |
||||
&google_api_expr_v1alpha1_MapValue_submsgs[0], |
||||
&google_api_expr_v1alpha1_MapValue__fields[0], |
||||
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_sub google_api_expr_v1alpha1_MapValue_Entry_submsgs[1] = { |
||||
{.submsg = &google_api_expr_v1alpha1_Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_msglayout_field google_api_expr_v1alpha1_MapValue_Entry__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 1, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
{2, UPB_SIZE(8, 16), 2, 0, 11, _UPB_MODE_SCALAR | (_UPB_REP_PTR << _UPB_REP_SHIFT)}, |
||||
}; |
||||
|
||||
const upb_msglayout google_api_expr_v1alpha1_MapValue_Entry_msginit = { |
||||
&google_api_expr_v1alpha1_MapValue_Entry_submsgs[0], |
||||
&google_api_expr_v1alpha1_MapValue_Entry__fields[0], |
||||
UPB_SIZE(16, 24), 2, _UPB_MSGEXT_NONE, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout *messages_layout[5] = { |
||||
&google_api_expr_v1alpha1_Value_msginit, |
||||
&google_api_expr_v1alpha1_EnumValue_msginit, |
||||
&google_api_expr_v1alpha1_ListValue_msginit, |
||||
&google_api_expr_v1alpha1_MapValue_msginit, |
||||
&google_api_expr_v1alpha1_MapValue_Entry_msginit, |
||||
}; |
||||
|
||||
const upb_msglayout_file google_api_expr_v1alpha1_value_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
5, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue