mirror of https://github.com/grpc/grpc.git
switch to new location of TypedStruct and ORCA protos (#27700)
* upgrade xDS protos * switch to new location of TypedStruct and ORCA protos * fix sanitypull/27729/head
parent
a54243862a
commit
464c1c519f
37 changed files with 606 additions and 671 deletions
@ -1,58 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/data/orca/v1/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "udpa/data/orca/v1/orca_load_report.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const udpa_data_orca_v1_OrcaLoadReport_submsgs[2] = { |
||||
&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, |
||||
&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport__fields[5] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 4, _UPB_MODE_SCALAR}, |
||||
{4, UPB_SIZE(24, 24), 0, 0, 11, _UPB_MODE_MAP}, |
||||
{5, UPB_SIZE(28, 32), 0, 1, 11, _UPB_MODE_MAP}, |
||||
}; |
||||
|
||||
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit = { |
||||
&udpa_data_orca_v1_OrcaLoadReport_submsgs[0], |
||||
&udpa_data_orca_v1_OrcaLoadReport__fields[0], |
||||
UPB_SIZE(32, 40), 5, false, 5, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
}; |
||||
|
||||
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit = { |
||||
NULL, |
||||
&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
}; |
||||
|
||||
const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit = { |
||||
NULL, |
||||
&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, 2, 255, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -1,130 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/data/orca/v1/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_ |
||||
#define UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_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 udpa_data_orca_v1_OrcaLoadReport; |
||||
struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry; |
||||
struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry; |
||||
typedef struct udpa_data_orca_v1_OrcaLoadReport udpa_data_orca_v1_OrcaLoadReport; |
||||
typedef struct udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry; |
||||
typedef struct udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit; |
||||
|
||||
|
||||
/* udpa.data.orca.v1.OrcaLoadReport */ |
||||
|
||||
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_new(upb_arena *arena) { |
||||
return (udpa_data_orca_v1_OrcaLoadReport *)_upb_msg_new(&udpa_data_orca_v1_OrcaLoadReport_msginit, arena); |
||||
} |
||||
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
udpa_data_orca_v1_OrcaLoadReport *ret = udpa_data_orca_v1_OrcaLoadReport_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport *udpa_data_orca_v1_OrcaLoadReport_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
udpa_data_orca_v1_OrcaLoadReport *ret = udpa_data_orca_v1_OrcaLoadReport_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &udpa_data_orca_v1_OrcaLoadReport_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *udpa_data_orca_v1_OrcaLoadReport_serialize(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &udpa_data_orca_v1_OrcaLoadReport_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_cpu_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); } |
||||
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_mem_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); } |
||||
UPB_INLINE uint64_t udpa_data_orca_v1_OrcaLoadReport_rps(const udpa_data_orca_v1_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_has_request_cost(const udpa_data_orca_v1_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE size_t udpa_data_orca_v1_OrcaLoadReport_request_cost_size(const udpa_data_orca_v1_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_get(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(24, 24), &key, 0, val, sizeof(*val)); } |
||||
UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_request_cost_next(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_has_utilization(const udpa_data_orca_v1_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE size_t udpa_data_orca_v1_OrcaLoadReport_utilization_size(const udpa_data_orca_v1_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_get(const udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(28, 32), &key, 0, val, sizeof(*val)); } |
||||
UPB_INLINE const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_utilization_next(const udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); } |
||||
|
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_cpu_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value; |
||||
} |
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_mem_utilization(udpa_data_orca_v1_OrcaLoadReport *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value; |
||||
} |
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_set_rps(udpa_data_orca_v1_OrcaLoadReport *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_request_cost_clear(udpa_data_orca_v1_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_set(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(24, 24), &key, 0, &val, sizeof(val), a); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_request_cost_delete(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(24, 24), &key, 0); } |
||||
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry* udpa_data_orca_v1_OrcaLoadReport_request_cost_nextmutable(udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); } |
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_utilization_clear(udpa_data_orca_v1_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_set(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(28, 32), &key, 0, &val, sizeof(val), a); } |
||||
UPB_INLINE bool udpa_data_orca_v1_OrcaLoadReport_utilization_delete(udpa_data_orca_v1_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(28, 32), &key, 0); } |
||||
UPB_INLINE udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry* udpa_data_orca_v1_OrcaLoadReport_utilization_nextmutable(udpa_data_orca_v1_OrcaLoadReport *msg, size_t* iter) { return (udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); } |
||||
|
||||
/* udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry */ |
||||
|
||||
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_key(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { |
||||
upb_strview ret; |
||||
_upb_msg_map_key(msg, &ret, 0); |
||||
return ret; |
||||
} |
||||
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_value(const udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg) { |
||||
double ret; |
||||
_upb_msg_map_value(msg, &ret, sizeof(ret)); |
||||
return ret; |
||||
} |
||||
|
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry *msg, double value) { |
||||
_upb_msg_map_set_value(msg, &value, sizeof(double)); |
||||
} |
||||
|
||||
/* udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry */ |
||||
|
||||
UPB_INLINE upb_strview udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_key(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { |
||||
upb_strview ret; |
||||
_upb_msg_map_key(msg, &ret, 0); |
||||
return ret; |
||||
} |
||||
UPB_INLINE double udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_value(const udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg) { |
||||
double ret; |
||||
_upb_msg_map_value(msg, &ret, sizeof(ret)); |
||||
return ret; |
||||
} |
||||
|
||||
UPB_INLINE void udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_set_value(udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry *msg, double value) { |
||||
_upb_msg_map_set_value(msg, &value, sizeof(double)); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPB_H_ */ |
@ -1,83 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/type/v1/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef UDPA_TYPE_V1_TYPED_STRUCT_PROTO_UPB_H_ |
||||
#define UDPA_TYPE_V1_TYPED_STRUCT_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 udpa_type_v1_TypedStruct; |
||||
typedef struct udpa_type_v1_TypedStruct udpa_type_v1_TypedStruct; |
||||
extern const upb_msglayout udpa_type_v1_TypedStruct_msginit; |
||||
struct google_protobuf_Struct; |
||||
extern const upb_msglayout google_protobuf_Struct_msginit; |
||||
|
||||
|
||||
/* udpa.type.v1.TypedStruct */ |
||||
|
||||
UPB_INLINE udpa_type_v1_TypedStruct *udpa_type_v1_TypedStruct_new(upb_arena *arena) { |
||||
return (udpa_type_v1_TypedStruct *)_upb_msg_new(&udpa_type_v1_TypedStruct_msginit, arena); |
||||
} |
||||
UPB_INLINE udpa_type_v1_TypedStruct *udpa_type_v1_TypedStruct_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
udpa_type_v1_TypedStruct *ret = udpa_type_v1_TypedStruct_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &udpa_type_v1_TypedStruct_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE udpa_type_v1_TypedStruct *udpa_type_v1_TypedStruct_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
udpa_type_v1_TypedStruct *ret = udpa_type_v1_TypedStruct_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &udpa_type_v1_TypedStruct_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *udpa_type_v1_TypedStruct_serialize(const udpa_type_v1_TypedStruct *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &udpa_type_v1_TypedStruct_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview udpa_type_v1_TypedStruct_type_url(const udpa_type_v1_TypedStruct *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool udpa_type_v1_TypedStruct_has_value(const udpa_type_v1_TypedStruct *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Struct* udpa_type_v1_TypedStruct_value(const udpa_type_v1_TypedStruct *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Struct*); } |
||||
|
||||
UPB_INLINE void udpa_type_v1_TypedStruct_set_type_url(udpa_type_v1_TypedStruct *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void udpa_type_v1_TypedStruct_set_value(udpa_type_v1_TypedStruct *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* udpa_type_v1_TypedStruct_mutable_value(udpa_type_v1_TypedStruct *msg, upb_arena *arena) { |
||||
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)udpa_type_v1_TypedStruct_value(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena); |
||||
if (!sub) return NULL; |
||||
udpa_type_v1_TypedStruct_set_value(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* UDPA_TYPE_V1_TYPED_STRUCT_PROTO_UPB_H_ */ |
@ -0,0 +1,58 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/data/orca/v3/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/data/orca/v3/orca_load_report.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const xds_data_orca_v3_OrcaLoadReport_submsgs[2] = { |
||||
&xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msginit, |
||||
&xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field xds_data_orca_v3_OrcaLoadReport__fields[5] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 8), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
{3, UPB_SIZE(16, 16), 0, 0, 4, _UPB_MODE_SCALAR}, |
||||
{4, UPB_SIZE(24, 24), 0, 0, 11, _UPB_MODE_MAP}, |
||||
{5, UPB_SIZE(28, 32), 0, 1, 11, _UPB_MODE_MAP}, |
||||
}; |
||||
|
||||
const upb_msglayout xds_data_orca_v3_OrcaLoadReport_msginit = { |
||||
&xds_data_orca_v3_OrcaLoadReport_submsgs[0], |
||||
&xds_data_orca_v3_OrcaLoadReport__fields[0], |
||||
UPB_SIZE(32, 40), 5, false, 5, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field xds_data_orca_v3_OrcaLoadReport_RequestCostEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
}; |
||||
|
||||
const upb_msglayout xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msginit = { |
||||
NULL, |
||||
&xds_data_orca_v3_OrcaLoadReport_RequestCostEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, 2, 255, |
||||
}; |
||||
|
||||
static const upb_msglayout_field xds_data_orca_v3_OrcaLoadReport_UtilizationEntry__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), 0, 0, 9, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(8, 16), 0, 0, 1, _UPB_MODE_SCALAR}, |
||||
}; |
||||
|
||||
const upb_msglayout xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msginit = { |
||||
NULL, |
||||
&xds_data_orca_v3_OrcaLoadReport_UtilizationEntry__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, 2, 255, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,130 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/data/orca/v3/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPB_H_ |
||||
#define XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_data_orca_v3_OrcaLoadReport; |
||||
struct xds_data_orca_v3_OrcaLoadReport_RequestCostEntry; |
||||
struct xds_data_orca_v3_OrcaLoadReport_UtilizationEntry; |
||||
typedef struct xds_data_orca_v3_OrcaLoadReport xds_data_orca_v3_OrcaLoadReport; |
||||
typedef struct xds_data_orca_v3_OrcaLoadReport_RequestCostEntry xds_data_orca_v3_OrcaLoadReport_RequestCostEntry; |
||||
typedef struct xds_data_orca_v3_OrcaLoadReport_UtilizationEntry xds_data_orca_v3_OrcaLoadReport_UtilizationEntry; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_msginit; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msginit; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msginit; |
||||
|
||||
|
||||
/* xds.data.orca.v3.OrcaLoadReport */ |
||||
|
||||
UPB_INLINE xds_data_orca_v3_OrcaLoadReport *xds_data_orca_v3_OrcaLoadReport_new(upb_arena *arena) { |
||||
return (xds_data_orca_v3_OrcaLoadReport *)_upb_msg_new(&xds_data_orca_v3_OrcaLoadReport_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_data_orca_v3_OrcaLoadReport *xds_data_orca_v3_OrcaLoadReport_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
xds_data_orca_v3_OrcaLoadReport *ret = xds_data_orca_v3_OrcaLoadReport_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &xds_data_orca_v3_OrcaLoadReport_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_data_orca_v3_OrcaLoadReport *xds_data_orca_v3_OrcaLoadReport_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
xds_data_orca_v3_OrcaLoadReport *ret = xds_data_orca_v3_OrcaLoadReport_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &xds_data_orca_v3_OrcaLoadReport_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *xds_data_orca_v3_OrcaLoadReport_serialize(const xds_data_orca_v3_OrcaLoadReport *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &xds_data_orca_v3_OrcaLoadReport_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE double xds_data_orca_v3_OrcaLoadReport_cpu_utilization(const xds_data_orca_v3_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); } |
||||
UPB_INLINE double xds_data_orca_v3_OrcaLoadReport_mem_utilization(const xds_data_orca_v3_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); } |
||||
UPB_INLINE uint64_t xds_data_orca_v3_OrcaLoadReport_rps(const xds_data_orca_v3_OrcaLoadReport *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_has_request_cost(const xds_data_orca_v3_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE size_t xds_data_orca_v3_OrcaLoadReport_request_cost_size(const xds_data_orca_v3_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_request_cost_get(const xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(24, 24), &key, 0, val, sizeof(*val)); } |
||||
UPB_INLINE const xds_data_orca_v3_OrcaLoadReport_RequestCostEntry* xds_data_orca_v3_OrcaLoadReport_request_cost_next(const xds_data_orca_v3_OrcaLoadReport *msg, size_t* iter) { return (const xds_data_orca_v3_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_has_utilization(const xds_data_orca_v3_OrcaLoadReport *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE size_t xds_data_orca_v3_OrcaLoadReport_utilization_size(const xds_data_orca_v3_OrcaLoadReport *msg) {return _upb_msg_map_size(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_utilization_get(const xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key, double *val) { return _upb_msg_map_get(msg, UPB_SIZE(28, 32), &key, 0, val, sizeof(*val)); } |
||||
UPB_INLINE const xds_data_orca_v3_OrcaLoadReport_UtilizationEntry* xds_data_orca_v3_OrcaLoadReport_utilization_next(const xds_data_orca_v3_OrcaLoadReport *msg, size_t* iter) { return (const xds_data_orca_v3_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); } |
||||
|
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_set_cpu_utilization(xds_data_orca_v3_OrcaLoadReport *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value; |
||||
} |
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_set_mem_utilization(xds_data_orca_v3_OrcaLoadReport *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value; |
||||
} |
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_set_rps(xds_data_orca_v3_OrcaLoadReport *msg, uint64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value; |
||||
} |
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_request_cost_clear(xds_data_orca_v3_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(24, 24)); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_request_cost_set(xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(24, 24), &key, 0, &val, sizeof(val), a); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_request_cost_delete(xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(24, 24), &key, 0); } |
||||
UPB_INLINE xds_data_orca_v3_OrcaLoadReport_RequestCostEntry* xds_data_orca_v3_OrcaLoadReport_request_cost_nextmutable(xds_data_orca_v3_OrcaLoadReport *msg, size_t* iter) { return (xds_data_orca_v3_OrcaLoadReport_RequestCostEntry*)_upb_msg_map_next(msg, UPB_SIZE(24, 24), iter); } |
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_utilization_clear(xds_data_orca_v3_OrcaLoadReport *msg) { _upb_msg_map_clear(msg, UPB_SIZE(28, 32)); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_utilization_set(xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key, double val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(28, 32), &key, 0, &val, sizeof(val), a); } |
||||
UPB_INLINE bool xds_data_orca_v3_OrcaLoadReport_utilization_delete(xds_data_orca_v3_OrcaLoadReport *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(28, 32), &key, 0); } |
||||
UPB_INLINE xds_data_orca_v3_OrcaLoadReport_UtilizationEntry* xds_data_orca_v3_OrcaLoadReport_utilization_nextmutable(xds_data_orca_v3_OrcaLoadReport *msg, size_t* iter) { return (xds_data_orca_v3_OrcaLoadReport_UtilizationEntry*)_upb_msg_map_next(msg, UPB_SIZE(28, 32), iter); } |
||||
|
||||
/* xds.data.orca.v3.OrcaLoadReport.RequestCostEntry */ |
||||
|
||||
UPB_INLINE upb_strview xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_key(const xds_data_orca_v3_OrcaLoadReport_RequestCostEntry *msg) { |
||||
upb_strview ret; |
||||
_upb_msg_map_key(msg, &ret, 0); |
||||
return ret; |
||||
} |
||||
UPB_INLINE double xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_value(const xds_data_orca_v3_OrcaLoadReport_RequestCostEntry *msg) { |
||||
double ret; |
||||
_upb_msg_map_value(msg, &ret, sizeof(ret)); |
||||
return ret; |
||||
} |
||||
|
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_set_value(xds_data_orca_v3_OrcaLoadReport_RequestCostEntry *msg, double value) { |
||||
_upb_msg_map_set_value(msg, &value, sizeof(double)); |
||||
} |
||||
|
||||
/* xds.data.orca.v3.OrcaLoadReport.UtilizationEntry */ |
||||
|
||||
UPB_INLINE upb_strview xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_key(const xds_data_orca_v3_OrcaLoadReport_UtilizationEntry *msg) { |
||||
upb_strview ret; |
||||
_upb_msg_map_key(msg, &ret, 0); |
||||
return ret; |
||||
} |
||||
UPB_INLINE double xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_value(const xds_data_orca_v3_OrcaLoadReport_UtilizationEntry *msg) { |
||||
double ret; |
||||
_upb_msg_map_value(msg, &ret, sizeof(ret)); |
||||
return ret; |
||||
} |
||||
|
||||
UPB_INLINE void xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_set_value(xds_data_orca_v3_OrcaLoadReport_UtilizationEntry *msg, double value) { |
||||
_upb_msg_map_set_value(msg, &value, sizeof(double)); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPB_H_ */ |
@ -1,31 +1,31 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/type/v1/typed_struct.proto |
||||
* xds/type/v3/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "udpa/type/v1/typed_struct.upb.h" |
||||
#include "xds/type/v3/typed_struct.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
#include "google/protobuf/struct.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_msglayout *const udpa_type_v1_TypedStruct_submsgs[1] = { |
||||
static const upb_msglayout *const xds_type_v3_TypedStruct_submsgs[1] = { |
||||
&google_protobuf_Struct_msginit, |
||||
}; |
||||
|
||||
static const upb_msglayout_field udpa_type_v1_TypedStruct__fields[2] = { |
||||
static const upb_msglayout_field xds_type_v3_TypedStruct__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), 0, 0, 9, _UPB_MODE_SCALAR}, |
||||
{2, UPB_SIZE(12, 24), 1, 0, 11, _UPB_MODE_SCALAR}, |
||||
}; |
||||
|
||||
const upb_msglayout udpa_type_v1_TypedStruct_msginit = { |
||||
&udpa_type_v1_TypedStruct_submsgs[0], |
||||
&udpa_type_v1_TypedStruct__fields[0], |
||||
const upb_msglayout xds_type_v3_TypedStruct_msginit = { |
||||
&xds_type_v3_TypedStruct_submsgs[0], |
||||
&xds_type_v3_TypedStruct__fields[0], |
||||
UPB_SIZE(16, 32), 2, false, 2, 255, |
||||
}; |
||||
|
@ -0,0 +1,83 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H_ |
||||
#define XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_v3_TypedStruct; |
||||
typedef struct xds_type_v3_TypedStruct xds_type_v3_TypedStruct; |
||||
extern const upb_msglayout xds_type_v3_TypedStruct_msginit; |
||||
struct google_protobuf_Struct; |
||||
extern const upb_msglayout google_protobuf_Struct_msginit; |
||||
|
||||
|
||||
/* xds.type.v3.TypedStruct */ |
||||
|
||||
UPB_INLINE xds_type_v3_TypedStruct *xds_type_v3_TypedStruct_new(upb_arena *arena) { |
||||
return (xds_type_v3_TypedStruct *)_upb_msg_new(&xds_type_v3_TypedStruct_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_TypedStruct *xds_type_v3_TypedStruct_parse(const char *buf, size_t size, |
||||
upb_arena *arena) { |
||||
xds_type_v3_TypedStruct *ret = xds_type_v3_TypedStruct_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!upb_decode(buf, size, ret, &xds_type_v3_TypedStruct_msginit, arena)) return NULL; |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_TypedStruct *xds_type_v3_TypedStruct_parse_ex(const char *buf, size_t size, |
||||
const upb_extreg *extreg, int options, |
||||
upb_arena *arena) { |
||||
xds_type_v3_TypedStruct *ret = xds_type_v3_TypedStruct_new(arena); |
||||
if (!ret) return NULL; |
||||
if (!_upb_decode(buf, size, ret, &xds_type_v3_TypedStruct_msginit, extreg, options, arena)) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char *xds_type_v3_TypedStruct_serialize(const xds_type_v3_TypedStruct *msg, upb_arena *arena, size_t *len) { |
||||
return upb_encode(msg, &xds_type_v3_TypedStruct_msginit, arena, len); |
||||
} |
||||
|
||||
UPB_INLINE upb_strview xds_type_v3_TypedStruct_type_url(const xds_type_v3_TypedStruct *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview); } |
||||
UPB_INLINE bool xds_type_v3_TypedStruct_has_value(const xds_type_v3_TypedStruct *msg) { return _upb_hasbit(msg, 1); } |
||||
UPB_INLINE const struct google_protobuf_Struct* xds_type_v3_TypedStruct_value(const xds_type_v3_TypedStruct *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Struct*); } |
||||
|
||||
UPB_INLINE void xds_type_v3_TypedStruct_set_type_url(xds_type_v3_TypedStruct *msg, upb_strview value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_strview) = value; |
||||
} |
||||
UPB_INLINE void xds_type_v3_TypedStruct_set_value(xds_type_v3_TypedStruct *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* xds_type_v3_TypedStruct_mutable_value(xds_type_v3_TypedStruct *msg, upb_arena *arena) { |
||||
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)xds_type_v3_TypedStruct_value(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_Struct*)_upb_msg_new(&google_protobuf_Struct_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_v3_TypedStruct_set_value(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPB_H_ */ |
@ -1,64 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/data/orca/v1/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "udpa/data/orca/v1/orca_load_report.upbdefs.h" |
||||
|
||||
extern upb_def_init validate_validate_proto_upbdefinit; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_msginit; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit; |
||||
extern const upb_msglayout udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit; |
||||
|
||||
static const upb_msglayout *layouts[3] = { |
||||
&udpa_data_orca_v1_OrcaLoadReport_msginit, |
||||
&udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_msginit, |
||||
&udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_msginit, |
||||
}; |
||||
|
||||
static const char descriptor[716] = {'\n', '(', 'u', 'd', 'p', 'a', '/', 'd', 'a', 't', 'a', '/', 'o', 'r', 'c', 'a', '/', 'v', '1', '/', 'o', 'r', 'c', 'a', '_',
|
||||
'l', 'o', 'a', 'd', '_', 'r', 'e', 'p', 'o', 'r', 't', '.', 'p', 'r', 'o', 't', 'o', '\022', '\021', 'u', 'd', 'p', 'a', '.', 'd',
|
||||
'a', 't', 'a', '.', 'o', 'r', 'c', 'a', '.', 'v', '1', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l',
|
||||
'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', '\205', '\004', '\n', '\016', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R',
|
||||
'e', 'p', 'o', 'r', 't', '\022', 'E', '\n', '\017', 'c', 'p', 'u', '_', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030',
|
||||
'\001', ' ', '\001', '(', '\001', 'B', '\034', '\372', 'B', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\013', '\022',
|
||||
'\t', '\031', '\000', '\000', '\000', '\000', '\000', '\000', '\360', '?', 'R', '\016', 'c', 'p', 'u', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o',
|
||||
'n', '\022', 'E', '\n', '\017', 'm', 'e', 'm', '_', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030', '\002', ' ', '\001', '(',
|
||||
'\001', 'B', '\034', '\372', 'B', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\013', '\022', '\t', '\031', '\000', '\000',
|
||||
'\000', '\000', '\000', '\000', '\360', '?', 'R', '\016', 'm', 'e', 'm', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\022', '\020', '\n',
|
||||
'\003', 'r', 'p', 's', '\030', '\003', ' ', '\001', '(', '\004', 'R', '\003', 'r', 'p', 's', '\022', 'U', '\n', '\014', 'r', 'e', 'q', 'u', 'e', 's',
|
||||
't', '_', 'c', 'o', 's', 't', '\030', '\004', ' ', '\003', '(', '\013', '2', '2', '.', 'u', 'd', 'p', 'a', '.', 'd', 'a', 't', 'a', '.',
|
||||
'o', 'r', 'c', 'a', '.', 'v', '1', '.', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R', 'e', 'p', 'o', 'r', 't', '.', 'R', 'e',
|
||||
'q', 'u', 'e', 's', 't', 'C', 'o', 's', 't', 'E', 'n', 't', 'r', 'y', 'R', '\013', 'r', 'e', 'q', 'u', 'e', 's', 't', 'C', 'o',
|
||||
's', 't', '\022', '|', '\n', '\013', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030', '\005', ' ', '\003', '(', '\013', '2', '2',
|
||||
'.', 'u', 'd', 'p', 'a', '.', 'd', 'a', 't', 'a', '.', 'o', 'r', 'c', 'a', '.', 'v', '1', '.', 'O', 'r', 'c', 'a', 'L', 'o',
|
||||
'a', 'd', 'R', 'e', 'p', 'o', 'r', 't', '.', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 'E', 'n', 't', 'r', 'y',
|
||||
'B', '&', '\372', 'B', '\020', '\232', '\001', '\r', '*', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\020', '\232',
|
||||
'\001', '\r', '*', '\013', '\022', '\t', '\031', '\000', '\000', '\000', '\000', '\000', '\000', '\360', '?', 'R', '\013', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't',
|
||||
'i', 'o', 'n', '\032', '>', '\n', '\020', 'R', 'e', 'q', 'u', 'e', 's', 't', 'C', 'o', 's', 't', 'E', 'n', 't', 'r', 'y', '\022', '\020',
|
||||
'\n', '\003', 'k', 'e', 'y', '\030', '\001', ' ', '\001', '(', '\t', 'R', '\003', 'k', 'e', 'y', '\022', '\024', '\n', '\005', 'v', 'a', 'l', 'u', 'e',
|
||||
'\030', '\002', ' ', '\001', '(', '\001', 'R', '\005', 'v', 'a', 'l', 'u', 'e', ':', '\002', '8', '\001', '\032', '>', '\n', '\020', 'U', 't', 'i', 'l',
|
||||
'i', 'z', 'a', 't', 'i', 'o', 'n', 'E', 'n', 't', 'r', 'y', '\022', '\020', '\n', '\003', 'k', 'e', 'y', '\030', '\001', ' ', '\001', '(', '\t',
|
||||
'R', '\003', 'k', 'e', 'y', '\022', '\024', '\n', '\005', 'v', 'a', 'l', 'u', 'e', '\030', '\002', ' ', '\001', '(', '\001', 'R', '\005', 'v', 'a', 'l',
|
||||
'u', 'e', ':', '\002', '8', '\001', 'B', 'd', '\n', '!', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'u', 'd', 'p', 'a',
|
||||
'.', 'u', 'd', 'p', 'a', '.', 'd', 'a', 't', 'a', '.', 'o', 'r', 'c', 'a', '.', 'v', '1', 'B', '\023', 'O', 'r', 'c', 'a', 'L',
|
||||
'o', 'a', 'd', 'R', 'e', 'p', 'o', 'r', 't', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '(', 'g', 'i', 't', 'h', 'u', 'b', '.',
|
||||
'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'u', 'd', 'p', 'a', '/', 'd', 'a', 't', 'a',
|
||||
'/', 'o', 'r', 'c', 'a', '/', 'v', '1', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static upb_def_init *deps[2] = { |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
upb_def_init udpa_data_orca_v1_orca_load_report_proto_upbdefinit = { |
||||
deps, |
||||
layouts, |
||||
"udpa/data/orca/v1/orca_load_report.proto", |
||||
UPB_STRVIEW_INIT(descriptor, 716) |
||||
}; |
@ -1,45 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/data/orca/v1/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ |
||||
#define UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern upb_def_init udpa_data_orca_v1_orca_load_report_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_msgdef *udpa_data_orca_v1_OrcaLoadReport_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &udpa_data_orca_v1_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "udpa.data.orca.v1.OrcaLoadReport"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_msgdef *udpa_data_orca_v1_OrcaLoadReport_RequestCostEntry_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &udpa_data_orca_v1_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_msgdef *udpa_data_orca_v1_OrcaLoadReport_UtilizationEntry_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &udpa_data_orca_v1_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* UDPA_DATA_ORCA_V1_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ */ |
@ -1,45 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/type/v1/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "udpa/type/v1/typed_struct.upbdefs.h" |
||||
|
||||
extern upb_def_init validate_validate_proto_upbdefinit; |
||||
extern upb_def_init google_protobuf_struct_proto_upbdefinit; |
||||
extern const upb_msglayout udpa_type_v1_TypedStruct_msginit; |
||||
|
||||
static const upb_msglayout *layouts[1] = { |
||||
&udpa_type_v1_TypedStruct_msginit, |
||||
}; |
||||
|
||||
static const char descriptor[288] = {'\n', '\037', 'u', 'd', 'p', 'a', '/', 't', 'y', 'p', 'e', '/', 'v', '1', '/', 't', 'y', 'p', 'e', 'd', '_', 's', 't', 'r', 'u',
|
||||
'c', 't', '.', 'p', 'r', 'o', 't', 'o', '\022', '\014', 'u', 'd', 'p', 'a', '.', 't', 'y', 'p', 'e', '.', 'v', '1', '\032', '\027', 'v',
|
||||
'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\032', '\034', 'g',
|
||||
'o', 'o', 'g', 'l', 'e', '/', 'p', 'r', 'o', 't', 'o', 'b', 'u', 'f', '/', 's', 't', 'r', 'u', 'c', 't', '.', 'p', 'r', 'o',
|
||||
't', 'o', '\"', 'W', '\n', '\013', 'T', 'y', 'p', 'e', 'd', 'S', 't', 'r', 'u', 'c', 't', '\022', '\031', '\n', '\010', 't', 'y', 'p', 'e',
|
||||
'_', 'u', 'r', 'l', '\030', '\001', ' ', '\001', '(', '\t', 'R', '\007', 't', 'y', 'p', 'e', 'U', 'r', 'l', '\022', '-', '\n', '\005', 'v', 'a',
|
||||
'l', 'u', 'e', '\030', '\002', ' ', '\001', '(', '\013', '2', '\027', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'p', 'r', 'o', 't', 'o', 'b',
|
||||
'u', 'f', '.', 'S', 't', 'r', 'u', 'c', 't', 'R', '\005', 'v', 'a', 'l', 'u', 'e', 'B', 'W', '\n', '\034', 'c', 'o', 'm', '.', 'g',
|
||||
'i', 't', 'h', 'u', 'b', '.', 'u', 'd', 'p', 'a', '.', 'u', 'd', 'p', 'a', '.', 't', 'y', 'p', 'e', '.', 'v', '1', 'B', '\020',
|
||||
'T', 'y', 'p', 'e', 'd', 'S', 't', 'r', 'u', 'c', 't', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '#', 'g', 'i', 't', 'h', 'u',
|
||||
'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'u', 'd', 'p', 'a', '/', 't', 'y',
|
||||
'p', 'e', '/', 'v', '1', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static upb_def_init *deps[3] = { |
||||
&validate_validate_proto_upbdefinit, |
||||
&google_protobuf_struct_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
upb_def_init udpa_type_v1_typed_struct_proto_upbdefinit = { |
||||
deps, |
||||
layouts, |
||||
"udpa/type/v1/typed_struct.proto", |
||||
UPB_STRVIEW_INIT(descriptor, 288) |
||||
}; |
@ -1,35 +0,0 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* udpa/type/v1/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef UDPA_TYPE_V1_TYPED_STRUCT_PROTO_UPBDEFS_H_ |
||||
#define UDPA_TYPE_V1_TYPED_STRUCT_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern upb_def_init udpa_type_v1_typed_struct_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_msgdef *udpa_type_v1_TypedStruct_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &udpa_type_v1_typed_struct_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "udpa.type.v1.TypedStruct"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* UDPA_TYPE_V1_TYPED_STRUCT_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,64 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/data/orca/v3/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/data/orca/v3/orca_load_report.upbdefs.h" |
||||
|
||||
extern upb_def_init validate_validate_proto_upbdefinit; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_msginit; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msginit; |
||||
extern const upb_msglayout xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msginit; |
||||
|
||||
static const upb_msglayout *layouts[3] = { |
||||
&xds_data_orca_v3_OrcaLoadReport_msginit, |
||||
&xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_msginit, |
||||
&xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_msginit, |
||||
}; |
||||
|
||||
static const char descriptor[705] = {'\n', '\'', 'x', 'd', 's', '/', 'd', 'a', 't', 'a', '/', 'o', 'r', 'c', 'a', '/', 'v', '3', '/', 'o', 'r', 'c', 'a', '_', 'l',
|
||||
'o', 'a', 'd', '_', 'r', 'e', 'p', 'o', 'r', 't', '.', 'p', 'r', 'o', 't', 'o', '\022', '\020', 'x', 'd', 's', '.', 'd', 'a', 't',
|
||||
'a', '.', 'o', 'r', 'c', 'a', '.', 'v', '3', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd',
|
||||
'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', '\203', '\004', '\n', '\016', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R', 'e', 'p',
|
||||
'o', 'r', 't', '\022', 'E', '\n', '\017', 'c', 'p', 'u', '_', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030', '\001', ' ',
|
||||
'\001', '(', '\001', 'B', '\034', '\372', 'B', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\013', '\022', '\t', '\031',
|
||||
'\000', '\000', '\000', '\000', '\000', '\000', '\360', '?', 'R', '\016', 'c', 'p', 'u', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\022',
|
||||
'E', '\n', '\017', 'm', 'e', 'm', '_', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030', '\002', ' ', '\001', '(', '\001', 'B',
|
||||
'\034', '\372', 'B', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\013', '\022', '\t', '\031', '\000', '\000', '\000', '\000',
|
||||
'\000', '\000', '\360', '?', 'R', '\016', 'm', 'e', 'm', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\022', '\020', '\n', '\003', 'r',
|
||||
'p', 's', '\030', '\003', ' ', '\001', '(', '\004', 'R', '\003', 'r', 'p', 's', '\022', 'T', '\n', '\014', 'r', 'e', 'q', 'u', 'e', 's', 't', '_',
|
||||
'c', 'o', 's', 't', '\030', '\004', ' ', '\003', '(', '\013', '2', '1', '.', 'x', 'd', 's', '.', 'd', 'a', 't', 'a', '.', 'o', 'r', 'c',
|
||||
'a', '.', 'v', '3', '.', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R', 'e', 'p', 'o', 'r', 't', '.', 'R', 'e', 'q', 'u', 'e',
|
||||
's', 't', 'C', 'o', 's', 't', 'E', 'n', 't', 'r', 'y', 'R', '\013', 'r', 'e', 'q', 'u', 'e', 's', 't', 'C', 'o', 's', 't', '\022',
|
||||
'{', '\n', '\013', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\030', '\005', ' ', '\003', '(', '\013', '2', '1', '.', 'x', 'd',
|
||||
's', '.', 'd', 'a', 't', 'a', '.', 'o', 'r', 'c', 'a', '.', 'v', '3', '.', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R', 'e',
|
||||
'p', 'o', 'r', 't', '.', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 'E', 'n', 't', 'r', 'y', 'B', '&', '\372', 'B',
|
||||
'\020', '\232', '\001', '\r', '*', '\013', '\022', '\t', ')', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\000', '\372', 'B', '\020', '\232', '\001', '\r', '*', '\013',
|
||||
'\022', '\t', '\031', '\000', '\000', '\000', '\000', '\000', '\000', '\360', '?', 'R', '\013', 'u', 't', 'i', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', '\032',
|
||||
'>', '\n', '\020', 'R', 'e', 'q', 'u', 'e', 's', 't', 'C', 'o', 's', 't', 'E', 'n', 't', 'r', 'y', '\022', '\020', '\n', '\003', 'k', 'e',
|
||||
'y', '\030', '\001', ' ', '\001', '(', '\t', 'R', '\003', 'k', 'e', 'y', '\022', '\024', '\n', '\005', 'v', 'a', 'l', 'u', 'e', '\030', '\002', ' ', '\001',
|
||||
'(', '\001', 'R', '\005', 'v', 'a', 'l', 'u', 'e', ':', '\002', '8', '\001', '\032', '>', '\n', '\020', 'U', 't', 'i', 'l', 'i', 'z', 'a', 't',
|
||||
'i', 'o', 'n', 'E', 'n', 't', 'r', 'y', '\022', '\020', '\n', '\003', 'k', 'e', 'y', '\030', '\001', ' ', '\001', '(', '\t', 'R', '\003', 'k', 'e',
|
||||
'y', '\022', '\024', '\n', '\005', 'v', 'a', 'l', 'u', 'e', '\030', '\002', ' ', '\001', '(', '\001', 'R', '\005', 'v', 'a', 'l', 'u', 'e', ':', '\002',
|
||||
'8', '\001', 'B', ']', '\n', '\033', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.', 'd', 'a', 't', 'a',
|
||||
'.', 'o', 'r', 'c', 'a', '.', 'v', '3', 'B', '\023', 'O', 'r', 'c', 'a', 'L', 'o', 'a', 'd', 'R', 'e', 'p', 'o', 'r', 't', 'P',
|
||||
'r', 'o', 't', 'o', 'P', '\001', 'Z', '\'', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x',
|
||||
'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 'd', 'a', 't', 'a', '/', 'o', 'r', 'c', 'a', '/', 'v', '3', 'b', '\006', 'p',
|
||||
'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static upb_def_init *deps[2] = { |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
upb_def_init xds_data_orca_v3_orca_load_report_proto_upbdefinit = { |
||||
deps, |
||||
layouts, |
||||
"xds/data/orca/v3/orca_load_report.proto", |
||||
UPB_STRVIEW_INIT(descriptor, 705) |
||||
}; |
@ -0,0 +1,45 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/data/orca/v3/orca_load_report.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ |
||||
#define XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern upb_def_init xds_data_orca_v3_orca_load_report_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_msgdef *xds_data_orca_v3_OrcaLoadReport_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &xds_data_orca_v3_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "xds.data.orca.v3.OrcaLoadReport"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_msgdef *xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &xds_data_orca_v3_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "xds.data.orca.v3.OrcaLoadReport.RequestCostEntry"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_msgdef *xds_data_orca_v3_OrcaLoadReport_UtilizationEntry_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &xds_data_orca_v3_orca_load_report_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "xds.data.orca.v3.OrcaLoadReport.UtilizationEntry"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_DATA_ORCA_V3_ORCA_LOAD_REPORT_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,45 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/v3/typed_struct.upbdefs.h" |
||||
|
||||
extern upb_def_init validate_validate_proto_upbdefinit; |
||||
extern upb_def_init google_protobuf_struct_proto_upbdefinit; |
||||
extern const upb_msglayout xds_type_v3_TypedStruct_msginit; |
||||
|
||||
static const upb_msglayout *layouts[1] = { |
||||
&xds_type_v3_TypedStruct_msginit, |
||||
}; |
||||
|
||||
static const char descriptor[279] = {'\n', '\036', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', '/', 't', 'y', 'p', 'e', 'd', '_', 's', 't', 'r', 'u', 'c',
|
||||
't', '.', 'p', 'r', 'o', 't', 'o', '\022', '\013', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3', '\032', '\027', 'v', 'a', 'l',
|
||||
'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\032', '\034', 'g', 'o', 'o',
|
||||
'g', 'l', 'e', '/', 'p', 'r', 'o', 't', 'o', 'b', 'u', 'f', '/', 's', 't', 'r', 'u', 'c', 't', '.', 'p', 'r', 'o', 't', 'o',
|
||||
'\"', 'W', '\n', '\013', 'T', 'y', 'p', 'e', 'd', 'S', 't', 'r', 'u', 'c', 't', '\022', '\031', '\n', '\010', 't', 'y', 'p', 'e', '_', 'u',
|
||||
'r', 'l', '\030', '\001', ' ', '\001', '(', '\t', 'R', '\007', 't', 'y', 'p', 'e', 'U', 'r', 'l', '\022', '-', '\n', '\005', 'v', 'a', 'l', 'u',
|
||||
'e', '\030', '\002', ' ', '\001', '(', '\013', '2', '\027', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'p', 'r', 'o', 't', 'o', 'b', 'u', 'f',
|
||||
'.', 'S', 't', 'r', 'u', 'c', 't', 'R', '\005', 'v', 'a', 'l', 'u', 'e', 'B', 'P', '\n', '\026', 'c', 'o', 'm', '.', 'g', 'i', 't',
|
||||
'h', 'u', 'b', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3', 'B', '\020', 'T', 'y', 'p', 'e', 'd', 'S', 't', 'r',
|
||||
'u', 'c', 't', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '\"', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n',
|
||||
'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', 'b', '\006', 'p', 'r',
|
||||
'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static upb_def_init *deps[3] = { |
||||
&validate_validate_proto_upbdefinit, |
||||
&google_protobuf_struct_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
upb_def_init xds_type_v3_typed_struct_proto_upbdefinit = { |
||||
deps, |
||||
layouts, |
||||
"xds/type/v3/typed_struct.proto", |
||||
UPB_STRVIEW_INIT(descriptor, 279) |
||||
}; |
@ -0,0 +1,35 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/typed_struct.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern upb_def_init xds_type_v3_typed_struct_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_msgdef *xds_type_v3_TypedStruct_getmsgdef(upb_symtab *s) { |
||||
_upb_symtab_loaddefinit(s, &xds_type_v3_typed_struct_proto_upbdefinit); |
||||
return upb_symtab_lookupmsg(s, "xds.type.v3.TypedStruct"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_TYPED_STRUCT_PROTO_UPBDEFS_H_ */ |
@ -1,58 +0,0 @@ |
||||
// Copyright 2019 The gRPC Authors |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
// This file contains a copy of the ORCA load reporting protos, with the |
||||
// validation options stripped out to avoid the extra dependency on |
||||
// protoc-gen-validate. |
||||
// |
||||
// TODO(juanlishen): This file is a hack to avoid a problem we're |
||||
// currently having where we can't depend on a proto file in an external |
||||
// repo due to bazel limitations. Once that's fixed, this should be |
||||
// removed. Until this, it should be used in the gRPC tests only, or else it |
||||
// will cause a conflict due to the same proto messages being defined in |
||||
// multiple files in the same binary. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package udpa.data.orca.v1; |
||||
|
||||
option java_outer_classname = "OrcaLoadReportProto"; |
||||
option java_multiple_files = true; |
||||
option java_package = "io.envoyproxy.udpa.data.orca.v1"; |
||||
option go_package = "v1"; |
||||
|
||||
// See section `ORCA load report format` of the design document in |
||||
// :ref:`https://github.com/envoyproxy/envoy/issues/6614`. |
||||
|
||||
message OrcaLoadReport { |
||||
// CPU utilization expressed as a fraction of available CPU resources. This |
||||
// should be derived from the latest sample or measurement. |
||||
double cpu_utilization = 1; |
||||
|
||||
// Memory utilization expressed as a fraction of available memory |
||||
// resources. This should be derived from the latest sample or measurement. |
||||
double mem_utilization = 2; |
||||
|
||||
// Total RPS being served by an endpoint. This should cover all services that an endpoint is |
||||
// responsible for. |
||||
uint64 rps = 3; |
||||
|
||||
// Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of |
||||
// storage) associated with the request. |
||||
map<string, double> request_cost = 4; |
||||
|
||||
// Resource utilization values. Each value is expressed as a fraction of total resources |
||||
// available, derived from the latest sample or measurement. |
||||
map<string, double> utilization = 5; |
||||
} |
Loading…
Reference in new issue