lrs.upb.h
Go to the documentation of this file.
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  * envoy/service/load_stats/v3/lrs.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_
10 #define ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_
11 
12 #include "upb/msg_internal.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
16 
17 #include "upb/port_def.inc"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
35 
36 
37 
38 /* envoy.service.load_stats.v3.LoadStatsRequest */
39 
42 }
45  if (!ret) return NULL;
47  return NULL;
48  }
49  return ret;
50 }
52  const upb_ExtensionRegistry* extreg,
53  int options, upb_Arena* arena) {
55  if (!ret) return NULL;
58  return NULL;
59  }
60  return ret;
61 }
64 }
66  upb_Arena* arena, size_t* len) {
68 }
70  return _upb_hasbit(msg, 1);
71 }
73  *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL;
74 }
76  return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_Node*);
77 }
79  return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16));
80 }
83 }
85  return (const struct envoy_config_endpoint_v3_ClusterStats* const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len);
86 }
87 
89  _upb_sethas(msg, 1);
91 }
94  if (sub == NULL) {
96  if (!sub) return NULL;
98  }
99  return sub;
100 }
103 }
106 }
109  bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub, arena);
110  if (!ok) return NULL;
111  return sub;
112 }
113 
114 /* envoy.service.load_stats.v3.LoadStatsResponse */
115 
118 }
121  if (!ret) return NULL;
123  return NULL;
124  }
125  return ret;
126 }
128  const upb_ExtensionRegistry* extreg,
129  int options, upb_Arena* arena) {
131  if (!ret) return NULL;
134  return NULL;
135  }
136  return ret;
137 }
140 }
142  upb_Arena* arena, size_t* len) {
144 }
147 }
149  return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len);
150 }
152  return _upb_hasbit(msg, 1);
153 }
155  *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL;
156 }
158  return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*);
159 }
161  *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = 0;
162 }
164  return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
165 }
167  *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = 0;
168 }
170  return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool);
171 }
172 
175 }
178 }
180  return _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(3, 4), &val, arena);
181 }
183  _upb_sethas(msg, 1);
185 }
188  if (sub == NULL) {
190  if (!sub) return NULL;
192  }
193  return sub;
194 }
196  *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
197 }
199  *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
200 }
201 
203 
204 #ifdef __cplusplus
205 } /* extern "C" */
206 #endif
207 
208 #include "upb/port_undef.inc"
209 
210 #endif /* ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_ */
envoy_service_load_stats_v3_LoadStatsResponse_clusters
UPB_INLINE upb_StringView const * envoy_service_load_stats_v3_LoadStatsResponse_clusters(const envoy_service_load_stats_v3_LoadStatsResponse *msg, size_t *len)
Definition: lrs.upb.h:148
envoy_service_load_stats_v3_LoadStatsRequest_clear_cluster_stats
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsRequest_clear_cluster_stats(const envoy_service_load_stats_v3_LoadStatsRequest *msg)
Definition: lrs.upb.h:81
envoy_service_load_stats_v3_LoadStatsResponse_report_endpoint_granularity
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsResponse_report_endpoint_granularity(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:163
_upb_array_accessor
const UPB_INLINE void * _upb_array_accessor(const void *msg, size_t ofs, size_t *size)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1159
envoy_config_core_v3_Node_msginit
const upb_MiniTable envoy_config_core_v3_Node_msginit
Definition: base.upb.c:98
envoy_service_load_stats_v3_LoadStatsResponse_mutable_clusters
UPB_INLINE upb_StringView * envoy_service_load_stats_v3_LoadStatsResponse_mutable_clusters(envoy_service_load_stats_v3_LoadStatsResponse *msg, size_t *len)
Definition: lrs.upb.h:173
encode.h
upb_Decode
upb_DecodeStatus upb_Decode(const char *buf, size_t size, void *msg, const upb_MiniTable *l, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: decode.c:1076
options
double_dict options[]
Definition: capstone_test.c:55
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
envoy_service_load_stats_v3_LoadStatsRequest_new
UPB_INLINE envoy_service_load_stats_v3_LoadStatsRequest * envoy_service_load_stats_v3_LoadStatsRequest_new(upb_Arena *arena)
Definition: lrs.upb.h:40
kUpb_DecodeStatus_Ok
@ kUpb_DecodeStatus_Ok
Definition: decode.h:72
_upb_sethas
UPB_INLINE bool _upb_sethas(const void *msg, size_t idx)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1232
envoy_service_load_stats_v3_LoadStatsRequest_cluster_stats
UPB_INLINE const struct envoy_config_endpoint_v3_ClusterStats *const * envoy_service_load_stats_v3_LoadStatsRequest_cluster_stats(const envoy_service_load_stats_v3_LoadStatsRequest *msg, size_t *len)
Definition: lrs.upb.h:84
envoy_service_load_stats_v3_LoadStatsRequest_parse
UPB_INLINE envoy_service_load_stats_v3_LoadStatsRequest * envoy_service_load_stats_v3_LoadStatsRequest_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: lrs.upb.h:43
upb_MiniTable
Definition: msg_internal.h:185
envoy_service_load_stats_v3_LoadStatsRequest_parse_ex
UPB_INLINE envoy_service_load_stats_v3_LoadStatsRequest * envoy_service_load_stats_v3_LoadStatsRequest_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: lrs.upb.h:51
_upb_array_detach
UPB_INLINE void _upb_array_detach(const void *msg, size_t ofs)
Definition: msg_internal.h:485
envoy_service_load_stats_v3_LoadStatsRequest_serialize_ex
UPB_INLINE char * envoy_service_load_stats_v3_LoadStatsRequest_serialize_ex(const envoy_service_load_stats_v3_LoadStatsRequest *msg, int options, upb_Arena *arena, size_t *len)
Definition: lrs.upb.h:65
UPB_PTR_AT
#define UPB_PTR_AT(msg, ofs, type)
Definition: php-upb.c:71
google_protobuf_Duration_msginit
const upb_MiniTable google_protobuf_Duration_msginit
Definition: duration.upb.c:20
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
envoy_service_load_stats_v3_LoadStatsResponse_parse
UPB_INLINE envoy_service_load_stats_v3_LoadStatsResponse * envoy_service_load_stats_v3_LoadStatsResponse_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: lrs.upb.h:119
envoy_service_load_stats_v3_LoadStatsRequest_serialize
UPB_INLINE char * envoy_service_load_stats_v3_LoadStatsRequest_serialize(const envoy_service_load_stats_v3_LoadStatsRequest *msg, upb_Arena *arena, size_t *len)
Definition: lrs.upb.h:62
_upb_Message_New
upb_Message * _upb_Message_New(const upb_MiniTable *l, upb_Arena *a)
Definition: msg.c:44
decode.h
envoy_service_load_stats_v3_LoadStatsResponse_set_send_all_clusters
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_set_send_all_clusters(envoy_service_load_stats_v3_LoadStatsResponse *msg, bool value)
Definition: lrs.upb.h:198
_upb_Array_Append_accessor2
UPB_INLINE bool _upb_Array_Append_accessor2(void *msg, size_t ofs, int elem_size_lg2, const void *value, upb_Arena *arena)
Definition: msg_internal.h:525
UPB_SIZE
#define UPB_SIZE(size32, size64)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:32
UPB_INLINE
#define UPB_INLINE
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:53
envoy_service_load_stats_v3_LoadStatsResponse_resize_clusters
UPB_INLINE upb_StringView * envoy_service_load_stats_v3_LoadStatsResponse_resize_clusters(envoy_service_load_stats_v3_LoadStatsResponse *msg, size_t len, upb_Arena *arena)
Definition: lrs.upb.h:176
upb_MiniTable_File
Definition: msg_internal.h:208
envoy_service_load_stats_v3_LoadStatsResponse_has_load_reporting_interval
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsResponse_has_load_reporting_interval(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:151
upb_Message
void upb_Message
Definition: msg.h:49
envoy_service_load_stats_v3_LoadStatsRequest_mutable_node
UPB_INLINE struct envoy_config_core_v3_Node * envoy_service_load_stats_v3_LoadStatsRequest_mutable_node(envoy_service_load_stats_v3_LoadStatsRequest *msg, upb_Arena *arena)
Definition: lrs.upb.h:92
decode_fast.h
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
envoy_service_load_stats_v3_LoadStatsResponse_msginit
const upb_MiniTable envoy_service_load_stats_v3_LoadStatsResponse_msginit
Definition: lrs.upb.c:47
envoy_service_load_stats_v3_LoadStatsResponse_set_load_reporting_interval
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_set_load_reporting_interval(envoy_service_load_stats_v3_LoadStatsResponse *msg, struct google_protobuf_Duration *value)
Definition: lrs.upb.h:182
value
const char * value
Definition: hpack_parser_table.cc:165
envoy_service_load_stats_v3_LoadStatsRequest_has_node
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsRequest_has_node(const envoy_service_load_stats_v3_LoadStatsRequest *msg)
Definition: lrs.upb.h:69
envoy_service_load_stats_v3_LoadStatsResponse_set_report_endpoint_granularity
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_set_report_endpoint_granularity(envoy_service_load_stats_v3_LoadStatsResponse *msg, bool value)
Definition: lrs.upb.h:195
upb_Encode
char * upb_Encode(const void *msg, const upb_MiniTable *l, int options, upb_Arena *arena, size_t *size)
Definition: encode.c:573
_upb_hasbit
UPB_INLINE bool _upb_hasbit(const upb_msg *msg, size_t idx)
Definition: php-upb.h:1269
envoy_service_load_stats_v3_LoadStatsResponse_mutable_load_reporting_interval
UPB_INLINE struct google_protobuf_Duration * envoy_service_load_stats_v3_LoadStatsResponse_mutable_load_reporting_interval(envoy_service_load_stats_v3_LoadStatsResponse *msg, upb_Arena *arena)
Definition: lrs.upb.h:186
envoy_config_core_v3_Node
struct envoy_config_core_v3_Node envoy_config_core_v3_Node
Definition: base.upb.h:50
envoy_config_endpoint_v3_ClusterStats
struct envoy_config_endpoint_v3_ClusterStats envoy_config_endpoint_v3_ClusterStats
Definition: load_report.upb.h:31
envoy_config_endpoint_v3_ClusterStats_msginit
const upb_MiniTable envoy_config_endpoint_v3_ClusterStats_msginit
Definition: load_report.upb.c:94
envoy_service_load_stats_v3_LoadStatsResponse_add_clusters
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsResponse_add_clusters(envoy_service_load_stats_v3_LoadStatsResponse *msg, upb_StringView val, upb_Arena *arena)
Definition: lrs.upb.h:179
upb_StringView
Definition: upb/upb/upb.h:72
envoy_service_load_stats_v3_LoadStatsRequest_clear_node
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsRequest_clear_node(const envoy_service_load_stats_v3_LoadStatsRequest *msg)
Definition: lrs.upb.h:72
envoy_service_load_stats_v3_LoadStatsResponse_new
UPB_INLINE envoy_service_load_stats_v3_LoadStatsResponse * envoy_service_load_stats_v3_LoadStatsResponse_new(upb_Arena *arena)
Definition: lrs.upb.h:116
envoy_service_load_stats_v3_LoadStatsResponse_load_reporting_interval
UPB_INLINE const struct google_protobuf_Duration * envoy_service_load_stats_v3_LoadStatsResponse_load_reporting_interval(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:157
envoy_service_load_stats_v3_LoadStatsResponse_clear_report_endpoint_granularity
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_clear_report_endpoint_granularity(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:160
envoy_service_load_stats_v3_LoadStatsResponse_clear_clusters
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_clear_clusters(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:145
envoy_service_load_stats_v3_LoadStatsResponse_send_all_clusters
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsResponse_send_all_clusters(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:169
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
envoy_service_load_stats_v3_LoadStatsRequest_resize_cluster_stats
UPB_INLINE struct envoy_config_endpoint_v3_ClusterStats ** envoy_service_load_stats_v3_LoadStatsRequest_resize_cluster_stats(envoy_service_load_stats_v3_LoadStatsRequest *msg, size_t len, upb_Arena *arena)
Definition: lrs.upb.h:104
ok
bool ok
Definition: async_end2end_test.cc:197
google_protobuf_Duration
struct google_protobuf_Duration google_protobuf_Duration
Definition: duration.upb.h:24
_upb_Array_Resize_accessor2
UPB_INLINE void * _upb_Array_Resize_accessor2(void *msg, size_t ofs, size_t size, int elem_size_lg2, upb_Arena *arena)
Definition: msg_internal.h:513
envoy_service_load_stats_v3_LoadStatsRequest
struct envoy_service_load_stats_v3_LoadStatsRequest envoy_service_load_stats_v3_LoadStatsRequest
Definition: lrs.upb.h:25
envoy_service_load_stats_v3_LoadStatsRequest_set_node
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsRequest_set_node(envoy_service_load_stats_v3_LoadStatsRequest *msg, struct envoy_config_core_v3_Node *value)
Definition: lrs.upb.h:88
envoy_service_load_stats_v3_LoadStatsResponse_serialize
UPB_INLINE char * envoy_service_load_stats_v3_LoadStatsResponse_serialize(const envoy_service_load_stats_v3_LoadStatsResponse *msg, upb_Arena *arena, size_t *len)
Definition: lrs.upb.h:138
_upb_has_submsg_nohasbit
UPB_INLINE bool _upb_has_submsg_nohasbit(const upb_msg *msg, size_t ofs)
Definition: php-upb.h:1326
envoy_service_load_stats_v3_LoadStatsRequest_node
UPB_INLINE const struct envoy_config_core_v3_Node * envoy_service_load_stats_v3_LoadStatsRequest_node(const envoy_service_load_stats_v3_LoadStatsRequest *msg)
Definition: lrs.upb.h:75
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
envoy_service_load_stats_v3_LoadStatsResponse_clear_send_all_clusters
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_clear_send_all_clusters(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:166
envoy_service_load_stats_v3_lrs_proto_upb_file_layout
const upb_MiniTable_File envoy_service_load_stats_v3_lrs_proto_upb_file_layout
Definition: lrs.upb.c:58
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
envoy_service_load_stats_v3_LoadStatsResponse_serialize_ex
UPB_INLINE char * envoy_service_load_stats_v3_LoadStatsResponse_serialize_ex(const envoy_service_load_stats_v3_LoadStatsResponse *msg, int options, upb_Arena *arena, size_t *len)
Definition: lrs.upb.h:141
envoy_service_load_stats_v3_LoadStatsRequest_msginit
const upb_MiniTable envoy_service_load_stats_v3_LoadStatsRequest_msginit
Definition: lrs.upb.c:30
envoy_service_load_stats_v3_LoadStatsResponse_parse_ex
UPB_INLINE envoy_service_load_stats_v3_LoadStatsResponse * envoy_service_load_stats_v3_LoadStatsResponse_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: lrs.upb.h:127
envoy_service_load_stats_v3_LoadStatsResponse_clear_load_reporting_interval
UPB_INLINE void envoy_service_load_stats_v3_LoadStatsResponse_clear_load_reporting_interval(const envoy_service_load_stats_v3_LoadStatsResponse *msg)
Definition: lrs.upb.h:154
msg_internal.h
upb_Arena
Definition: upb_internal.h:36
envoy_service_load_stats_v3_LoadStatsRequest_has_cluster_stats
UPB_INLINE bool envoy_service_load_stats_v3_LoadStatsRequest_has_cluster_stats(const envoy_service_load_stats_v3_LoadStatsRequest *msg)
Definition: lrs.upb.h:78
envoy_service_load_stats_v3_LoadStatsResponse
struct envoy_service_load_stats_v3_LoadStatsResponse envoy_service_load_stats_v3_LoadStatsResponse
Definition: lrs.upb.h:26
envoy_service_load_stats_v3_LoadStatsRequest_add_cluster_stats
UPB_INLINE struct envoy_config_endpoint_v3_ClusterStats * envoy_service_load_stats_v3_LoadStatsRequest_add_cluster_stats(envoy_service_load_stats_v3_LoadStatsRequest *msg, upb_Arena *arena)
Definition: lrs.upb.h:107
upb_ExtensionRegistry
Definition: msg.c:372
_upb_array_mutable_accessor
UPB_INLINE void * _upb_array_mutable_accessor(void *msg, size_t ofs, size_t *size)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1171
envoy_service_load_stats_v3_LoadStatsRequest_mutable_cluster_stats
UPB_INLINE struct envoy_config_endpoint_v3_ClusterStats ** envoy_service_load_stats_v3_LoadStatsRequest_mutable_cluster_stats(envoy_service_load_stats_v3_LoadStatsRequest *msg, size_t *len)
Definition: lrs.upb.h:101


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:30