9 #ifndef ENVOY_SERVICE_LOAD_STATS_V2_LRS_PROTO_UPB_H_
10 #define ENVOY_SERVICE_LOAD_STATS_V2_LRS_PROTO_UPB_H_
12 #include "upb/generated_util.h"
14 #include "upb/decode.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
61 if (!sub)
return NULL;
74 bool ok = _upb_array_append_accessor(
75 msg, UPB_SIZE(4, 8), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
99 return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
102 return (upb_strview*)_upb_array_resize_accessor(msg, UPB_SIZE(8, 16), len, UPB_SIZE(8, 16), UPB_TYPE_STRING, arena);
105 return _upb_array_append_accessor(
106 msg, UPB_SIZE(8, 16), UPB_SIZE(8, 16), UPB_TYPE_STRING, &val, arena);
115 if (!sub)
return NULL;
121 UPB_FIELD_AT(msg,
bool, UPB_SIZE(0, 0)) = value;
128 #include "upb/port_undef.inc"
struct envoy_api_v2_core_Node envoy_api_v2_core_Node
Definition: base.upb.h:40
struct google_protobuf_Duration google_protobuf_Duration
Definition: duration.upb.h:24
struct envoy_api_v2_endpoint_ClusterStats envoy_api_v2_endpoint_ClusterStats
Definition: load_report.upb.h:31
UPB_INLINE const struct google_protobuf_Duration * envoy_service_load_stats_v2_LoadStatsResponse_load_reporting_interval(const envoy_service_load_stats_v2_LoadStatsResponse *msg)
Definition: lrs.upb.h:95
UPB_INLINE envoy_service_load_stats_v2_LoadStatsResponse * envoy_service_load_stats_v2_LoadStatsResponse_new(upb_arena *arena)
Definition: lrs.upb.h:82
UPB_INLINE char * envoy_service_load_stats_v2_LoadStatsResponse_serialize(const envoy_service_load_stats_v2_LoadStatsResponse *msg, upb_arena *arena, size_t *len)
Definition: lrs.upb.h:90
const upb_msglayout envoy_api_v2_core_Node_msginit
Definition: base.upb.c:46
const upb_msglayout envoy_api_v2_endpoint_ClusterStats_msginit
Definition: load_report.upb.c:92
UPB_INLINE char * envoy_service_load_stats_v2_LoadStatsRequest_serialize(const envoy_service_load_stats_v2_LoadStatsRequest *msg, upb_arena *arena, size_t *len)
Definition: lrs.upb.h:47
UPB_INLINE struct envoy_api_v2_endpoint_ClusterStats ** envoy_service_load_stats_v2_LoadStatsRequest_mutable_cluster_stats(envoy_service_load_stats_v2_LoadStatsRequest *msg, size_t *len)
Definition: lrs.upb.h:66
UPB_INLINE envoy_service_load_stats_v2_LoadStatsRequest * envoy_service_load_stats_v2_LoadStatsRequest_parse(const char *buf, size_t size, upb_arena *arena)
Definition: lrs.upb.h:42
UPB_INLINE upb_strview const * envoy_service_load_stats_v2_LoadStatsResponse_clusters(const envoy_service_load_stats_v2_LoadStatsResponse *msg, size_t *len)
Definition: lrs.upb.h:94
UPB_INLINE const struct envoy_api_v2_endpoint_ClusterStats *const * envoy_service_load_stats_v2_LoadStatsRequest_cluster_stats(const envoy_service_load_stats_v2_LoadStatsRequest *msg, size_t *len)
Definition: lrs.upb.h:52
UPB_INLINE envoy_service_load_stats_v2_LoadStatsResponse * envoy_service_load_stats_v2_LoadStatsResponse_parse(const char *buf, size_t size, upb_arena *arena)
Definition: lrs.upb.h:85
UPB_INLINE bool envoy_service_load_stats_v2_LoadStatsResponse_add_clusters(envoy_service_load_stats_v2_LoadStatsResponse *msg, upb_strview val, upb_arena *arena)
Definition: lrs.upb.h:104
UPB_INLINE void envoy_service_load_stats_v2_LoadStatsResponse_set_load_reporting_interval(envoy_service_load_stats_v2_LoadStatsResponse *msg, struct google_protobuf_Duration *value)
Definition: lrs.upb.h:108
UPB_INLINE upb_strview * envoy_service_load_stats_v2_LoadStatsResponse_mutable_clusters(envoy_service_load_stats_v2_LoadStatsResponse *msg, size_t *len)
Definition: lrs.upb.h:98
struct envoy_service_load_stats_v2_LoadStatsResponse envoy_service_load_stats_v2_LoadStatsResponse
Definition: lrs.upb.h:26
UPB_INLINE struct envoy_api_v2_core_Node * envoy_service_load_stats_v2_LoadStatsRequest_mutable_node(envoy_service_load_stats_v2_LoadStatsRequest *msg, upb_arena *arena)
Definition: lrs.upb.h:57
UPB_INLINE envoy_service_load_stats_v2_LoadStatsRequest * envoy_service_load_stats_v2_LoadStatsRequest_new(upb_arena *arena)
Definition: lrs.upb.h:39
UPB_INLINE bool envoy_service_load_stats_v2_LoadStatsResponse_report_endpoint_granularity(const envoy_service_load_stats_v2_LoadStatsResponse *msg)
Definition: lrs.upb.h:96
const upb_msglayout envoy_service_load_stats_v2_LoadStatsResponse_msginit
Definition: lrs.upb.c:45
UPB_INLINE void envoy_service_load_stats_v2_LoadStatsRequest_set_node(envoy_service_load_stats_v2_LoadStatsRequest *msg, struct envoy_api_v2_core_Node *value)
Definition: lrs.upb.h:54
const upb_msglayout google_protobuf_Duration_msginit
Definition: duration.upb.c:20
UPB_INLINE struct google_protobuf_Duration * envoy_service_load_stats_v2_LoadStatsResponse_mutable_load_reporting_interval(envoy_service_load_stats_v2_LoadStatsResponse *msg, upb_arena *arena)
Definition: lrs.upb.h:111
const upb_msglayout envoy_service_load_stats_v2_LoadStatsRequest_msginit
Definition: lrs.upb.c:29
UPB_INLINE upb_strview * envoy_service_load_stats_v2_LoadStatsResponse_resize_clusters(envoy_service_load_stats_v2_LoadStatsResponse *msg, size_t len, upb_arena *arena)
Definition: lrs.upb.h:101
struct envoy_service_load_stats_v2_LoadStatsRequest envoy_service_load_stats_v2_LoadStatsRequest
Definition: lrs.upb.h:25
UPB_INLINE const struct envoy_api_v2_core_Node * envoy_service_load_stats_v2_LoadStatsRequest_node(const envoy_service_load_stats_v2_LoadStatsRequest *msg)
Definition: lrs.upb.h:51
UPB_INLINE struct envoy_api_v2_endpoint_ClusterStats * envoy_service_load_stats_v2_LoadStatsRequest_add_cluster_stats(envoy_service_load_stats_v2_LoadStatsRequest *msg, upb_arena *arena)
Definition: lrs.upb.h:72
UPB_INLINE struct envoy_api_v2_endpoint_ClusterStats ** envoy_service_load_stats_v2_LoadStatsRequest_resize_cluster_stats(envoy_service_load_stats_v2_LoadStatsRequest *msg, size_t len, upb_arena *arena)
Definition: lrs.upb.h:69
UPB_INLINE void envoy_service_load_stats_v2_LoadStatsResponse_set_report_endpoint_granularity(envoy_service_load_stats_v2_LoadStatsResponse *msg, bool value)
Definition: lrs.upb.h:120