9 #ifndef SRC_PROTO_GRPC_LB_V1_LOAD_BALANCER_PROTO_UPB_H_
10 #define SRC_PROTO_GRPC_LB_V1_LOAD_BALANCER_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"
86 if (!sub)
return NULL;
98 if (!sub)
return NULL;
121 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
142 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
145 UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
176 if (!sub)
return NULL;
182 UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
185 UPB_FIELD_AT(msg, int64_t, UPB_SIZE(8, 8)) = value;
188 UPB_FIELD_AT(msg, int64_t, UPB_SIZE(16, 16)) = value;
191 UPB_FIELD_AT(msg, int64_t, UPB_SIZE(24, 24)) = value;
201 bool ok = _upb_array_append_accessor(
202 msg, UPB_SIZE(36, 40), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
203 if (!ok)
return NULL;
240 if (!sub)
return NULL;
252 if (!sub)
return NULL;
276 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
285 if (!sub)
return NULL;
308 return (
grpc_lb_v1_Server**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
311 return (
grpc_lb_v1_Server**)_upb_array_resize_accessor(msg, UPB_SIZE(0, 0), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
315 bool ok = _upb_array_append_accessor(
316 msg, UPB_SIZE(0, 0), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
317 if (!ok)
return NULL;
341 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
344 UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
347 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(16, 24)) = value;
350 UPB_FIELD_AT(msg,
bool, UPB_SIZE(4, 4)) = value;
357 #include "upb/port_undef.inc"
struct google_protobuf_Duration google_protobuf_Duration
Definition: duration.upb.h:24
UPB_INLINE char * grpc_lb_v1_LoadBalanceRequest_serialize(const grpc_lb_v1_LoadBalanceRequest *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:63
UPB_INLINE char * grpc_lb_v1_ClientStats_serialize(const grpc_lb_v1_ClientStats *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:158
UPB_INLINE void grpc_lb_v1_ClientStats_set_num_calls_started(grpc_lb_v1_ClientStats *msg, int64_t value)
Definition: load_balancer.upb.h:181
UPB_INLINE const grpc_lb_v1_ClientStats * grpc_lb_v1_LoadBalanceRequest_client_stats(const grpc_lb_v1_LoadBalanceRequest *msg)
Definition: load_balancer.upb.h:77
UPB_INLINE grpc_lb_v1_ClientStatsPerToken * grpc_lb_v1_ClientStatsPerToken_new(upb_arena *arena)
Definition: load_balancer.upb.h:126
struct grpc_lb_v1_LoadBalanceRequest grpc_lb_v1_LoadBalanceRequest
Definition: load_balancer.upb.h:31
UPB_INLINE grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_oneofcases grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_case(const grpc_lb_v1_LoadBalanceRequest *msg)
Definition: load_balancer.upb.h:72
UPB_INLINE grpc_lb_v1_LoadBalanceRequest * grpc_lb_v1_LoadBalanceRequest_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:58
const upb_msglayout google_protobuf_Timestamp_msginit
Definition: timestamp.upb.c:20
struct grpc_lb_v1_Server grpc_lb_v1_Server
Definition: load_balancer.upb.h:38
UPB_INLINE char * grpc_lb_v1_ServerList_serialize(const grpc_lb_v1_ServerList *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:301
UPB_INLINE void grpc_lb_v1_Server_set_drop(grpc_lb_v1_Server *msg, bool value)
Definition: load_balancer.upb.h:349
UPB_INLINE upb_strview grpc_lb_v1_Server_ip_address(const grpc_lb_v1_Server *msg)
Definition: load_balancer.upb.h:335
UPB_INLINE char * grpc_lb_v1_InitialLoadBalanceResponse_serialize(const grpc_lb_v1_InitialLoadBalanceResponse *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:268
UPB_INLINE bool grpc_lb_v1_LoadBalanceRequest_has_initial_request(const grpc_lb_v1_LoadBalanceRequest *msg)
Definition: load_balancer.upb.h:74
UPB_INLINE void grpc_lb_v1_InitialLoadBalanceResponse_set_load_balancer_delegate(grpc_lb_v1_InitialLoadBalanceResponse *msg, upb_strview value)
Definition: load_balancer.upb.h:275
UPB_INLINE upb_strview grpc_lb_v1_Server_load_balance_token(const grpc_lb_v1_Server *msg)
Definition: load_balancer.upb.h:337
UPB_INLINE bool grpc_lb_v1_LoadBalanceResponse_has_initial_response(const grpc_lb_v1_LoadBalanceResponse *msg)
Definition: load_balancer.upb.h:228
struct grpc_lb_v1_InitialLoadBalanceResponse grpc_lb_v1_InitialLoadBalanceResponse
Definition: load_balancer.upb.h:36
UPB_INLINE void grpc_lb_v1_InitialLoadBalanceRequest_set_name(grpc_lb_v1_InitialLoadBalanceRequest *msg, upb_strview value)
Definition: load_balancer.upb.h:120
grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_oneofcases
Definition: load_balancer.upb.h:221
@ grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_initial_response
Definition: load_balancer.upb.h:222
@ grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_server_list
Definition: load_balancer.upb.h:223
@ grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_NOT_SET
Definition: load_balancer.upb.h:224
UPB_INLINE const struct google_protobuf_Timestamp * grpc_lb_v1_ClientStats_timestamp(const grpc_lb_v1_ClientStats *msg)
Definition: load_balancer.upb.h:162
const upb_msglayout grpc_lb_v1_ClientStatsPerToken_msginit
Definition: load_balancer.upb.c:48
struct grpc_lb_v1_LoadBalanceResponse grpc_lb_v1_LoadBalanceResponse
Definition: load_balancer.upb.h:35
UPB_INLINE grpc_lb_v1_Server * grpc_lb_v1_Server_new(upb_arena *arena)
Definition: load_balancer.upb.h:323
UPB_INLINE void grpc_lb_v1_LoadBalanceRequest_set_initial_request(grpc_lb_v1_LoadBalanceRequest *msg, grpc_lb_v1_InitialLoadBalanceRequest *value)
Definition: load_balancer.upb.h:79
UPB_INLINE const grpc_lb_v1_Server *const * grpc_lb_v1_ServerList_servers(const grpc_lb_v1_ServerList *msg, size_t *len)
Definition: load_balancer.upb.h:305
UPB_INLINE void grpc_lb_v1_Server_set_port(grpc_lb_v1_Server *msg, int32_t value)
Definition: load_balancer.upb.h:343
UPB_INLINE bool grpc_lb_v1_LoadBalanceResponse_has_server_list(const grpc_lb_v1_LoadBalanceResponse *msg)
Definition: load_balancer.upb.h:230
UPB_INLINE int64_t grpc_lb_v1_ClientStats_num_calls_finished_known_received(const grpc_lb_v1_ClientStats *msg)
Definition: load_balancer.upb.h:166
UPB_INLINE void grpc_lb_v1_ClientStats_set_num_calls_finished_known_received(grpc_lb_v1_ClientStats *msg, int64_t value)
Definition: load_balancer.upb.h:190
const upb_msglayout grpc_lb_v1_LoadBalanceRequest_msginit
Definition: load_balancer.upb.c:27
UPB_INLINE struct google_protobuf_Timestamp * grpc_lb_v1_ClientStats_mutable_timestamp(grpc_lb_v1_ClientStats *msg, upb_arena *arena)
Definition: load_balancer.upb.h:172
UPB_INLINE grpc_lb_v1_Server * grpc_lb_v1_Server_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:326
UPB_INLINE const grpc_lb_v1_ServerList * grpc_lb_v1_LoadBalanceResponse_server_list(const grpc_lb_v1_LoadBalanceResponse *msg)
Definition: load_balancer.upb.h:231
const upb_msglayout grpc_lb_v1_LoadBalanceResponse_msginit
Definition: load_balancer.upb.c:84
UPB_INLINE char * grpc_lb_v1_Server_serialize(const grpc_lb_v1_Server *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:331
UPB_INLINE int64_t grpc_lb_v1_ClientStats_num_calls_started(const grpc_lb_v1_ClientStats *msg)
Definition: load_balancer.upb.h:163
UPB_INLINE upb_strview grpc_lb_v1_InitialLoadBalanceRequest_name(const grpc_lb_v1_InitialLoadBalanceRequest *msg)
Definition: load_balancer.upb.h:118
UPB_INLINE grpc_lb_v1_LoadBalanceRequest * grpc_lb_v1_LoadBalanceRequest_new(upb_arena *arena)
Definition: load_balancer.upb.h:55
UPB_INLINE grpc_lb_v1_LoadBalanceResponse * grpc_lb_v1_LoadBalanceResponse_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:212
UPB_INLINE void grpc_lb_v1_LoadBalanceResponse_set_initial_response(grpc_lb_v1_LoadBalanceResponse *msg, grpc_lb_v1_InitialLoadBalanceResponse *value)
Definition: load_balancer.upb.h:233
const upb_msglayout grpc_lb_v1_InitialLoadBalanceRequest_msginit
Definition: load_balancer.upb.c:37
UPB_INLINE void grpc_lb_v1_Server_set_ip_address(grpc_lb_v1_Server *msg, upb_strview value)
Definition: load_balancer.upb.h:340
const upb_msglayout grpc_lb_v1_ServerList_msginit
Definition: load_balancer.upb.c:113
UPB_INLINE grpc_lb_v1_ServerList * grpc_lb_v1_ServerList_new(upb_arena *arena)
Definition: load_balancer.upb.h:293
UPB_INLINE void grpc_lb_v1_LoadBalanceResponse_set_server_list(grpc_lb_v1_LoadBalanceResponse *msg, grpc_lb_v1_ServerList *value)
Definition: load_balancer.upb.h:245
UPB_INLINE void grpc_lb_v1_ClientStats_set_num_calls_finished_with_client_failed_to_send(grpc_lb_v1_ClientStats *msg, int64_t value)
Definition: load_balancer.upb.h:187
UPB_INLINE bool grpc_lb_v1_Server_drop(const grpc_lb_v1_Server *msg)
Definition: load_balancer.upb.h:338
UPB_INLINE grpc_lb_v1_ServerList * grpc_lb_v1_ServerList_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:296
UPB_INLINE void grpc_lb_v1_LoadBalanceRequest_set_client_stats(grpc_lb_v1_LoadBalanceRequest *msg, grpc_lb_v1_ClientStats *value)
Definition: load_balancer.upb.h:91
UPB_INLINE const grpc_lb_v1_InitialLoadBalanceRequest * grpc_lb_v1_LoadBalanceRequest_initial_request(const grpc_lb_v1_LoadBalanceRequest *msg)
Definition: load_balancer.upb.h:75
UPB_INLINE int64_t grpc_lb_v1_ClientStats_num_calls_finished(const grpc_lb_v1_ClientStats *msg)
Definition: load_balancer.upb.h:164
UPB_INLINE grpc_lb_v1_Server ** grpc_lb_v1_ServerList_resize_servers(grpc_lb_v1_ServerList *msg, size_t len, upb_arena *arena)
Definition: load_balancer.upb.h:310
UPB_INLINE int64_t grpc_lb_v1_ClientStats_num_calls_finished_with_client_failed_to_send(const grpc_lb_v1_ClientStats *msg)
Definition: load_balancer.upb.h:165
UPB_INLINE grpc_lb_v1_InitialLoadBalanceResponse * grpc_lb_v1_InitialLoadBalanceResponse_new(upb_arena *arena)
Definition: load_balancer.upb.h:260
UPB_INLINE const struct google_protobuf_Duration * grpc_lb_v1_InitialLoadBalanceResponse_client_stats_report_interval(const grpc_lb_v1_InitialLoadBalanceResponse *msg)
Definition: load_balancer.upb.h:273
UPB_INLINE grpc_lb_v1_ClientStats * grpc_lb_v1_ClientStats_new(upb_arena *arena)
Definition: load_balancer.upb.h:150
UPB_INLINE const grpc_lb_v1_ClientStatsPerToken *const * grpc_lb_v1_ClientStats_calls_finished_with_drop(const grpc_lb_v1_ClientStats *msg, size_t *len)
Definition: load_balancer.upb.h:167
UPB_INLINE grpc_lb_v1_Server ** grpc_lb_v1_ServerList_mutable_servers(grpc_lb_v1_ServerList *msg, size_t *len)
Definition: load_balancer.upb.h:307
const upb_msglayout grpc_lb_v1_InitialLoadBalanceResponse_msginit
Definition: load_balancer.upb.c:99
UPB_INLINE bool grpc_lb_v1_LoadBalanceRequest_has_client_stats(const grpc_lb_v1_LoadBalanceRequest *msg)
Definition: load_balancer.upb.h:76
UPB_INLINE struct grpc_lb_v1_InitialLoadBalanceRequest * grpc_lb_v1_LoadBalanceRequest_mutable_initial_request(grpc_lb_v1_LoadBalanceRequest *msg, upb_arena *arena)
Definition: load_balancer.upb.h:82
UPB_INLINE char * grpc_lb_v1_LoadBalanceResponse_serialize(const grpc_lb_v1_LoadBalanceResponse *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:217
struct grpc_lb_v1_ClientStatsPerToken grpc_lb_v1_ClientStatsPerToken
Definition: load_balancer.upb.h:33
const upb_msglayout grpc_lb_v1_ClientStats_msginit
Definition: load_balancer.upb.c:68
const upb_msglayout grpc_lb_v1_Server_msginit
Definition: load_balancer.upb.c:126
UPB_INLINE grpc_lb_v1_InitialLoadBalanceRequest * grpc_lb_v1_InitialLoadBalanceRequest_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:109
UPB_INLINE int64_t grpc_lb_v1_ClientStatsPerToken_num_calls(const grpc_lb_v1_ClientStatsPerToken *msg)
Definition: load_balancer.upb.h:139
UPB_INLINE upb_strview grpc_lb_v1_ClientStatsPerToken_load_balance_token(const grpc_lb_v1_ClientStatsPerToken *msg)
Definition: load_balancer.upb.h:138
UPB_INLINE struct grpc_lb_v1_Server * grpc_lb_v1_ServerList_add_servers(grpc_lb_v1_ServerList *msg, upb_arena *arena)
Definition: load_balancer.upb.h:313
UPB_INLINE grpc_lb_v1_LoadBalanceResponse * grpc_lb_v1_LoadBalanceResponse_new(upb_arena *arena)
Definition: load_balancer.upb.h:209
struct grpc_lb_v1_ServerList grpc_lb_v1_ServerList
Definition: load_balancer.upb.h:37
UPB_INLINE upb_strview grpc_lb_v1_InitialLoadBalanceResponse_load_balancer_delegate(const grpc_lb_v1_InitialLoadBalanceResponse *msg)
Definition: load_balancer.upb.h:272
struct grpc_lb_v1_InitialLoadBalanceRequest grpc_lb_v1_InitialLoadBalanceRequest
Definition: load_balancer.upb.h:32
UPB_INLINE char * grpc_lb_v1_InitialLoadBalanceRequest_serialize(const grpc_lb_v1_InitialLoadBalanceRequest *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:114
UPB_INLINE grpc_lb_v1_InitialLoadBalanceResponse * grpc_lb_v1_InitialLoadBalanceResponse_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:263
UPB_INLINE grpc_lb_v1_ClientStatsPerToken ** grpc_lb_v1_ClientStats_mutable_calls_finished_with_drop(grpc_lb_v1_ClientStats *msg, size_t *len)
Definition: load_balancer.upb.h:193
const upb_msglayout google_protobuf_Duration_msginit
Definition: duration.upb.c:20
UPB_INLINE void grpc_lb_v1_Server_set_load_balance_token(grpc_lb_v1_Server *msg, upb_strview value)
Definition: load_balancer.upb.h:346
UPB_INLINE struct grpc_lb_v1_ServerList * grpc_lb_v1_LoadBalanceResponse_mutable_server_list(grpc_lb_v1_LoadBalanceResponse *msg, upb_arena *arena)
Definition: load_balancer.upb.h:248
UPB_INLINE void grpc_lb_v1_InitialLoadBalanceResponse_set_client_stats_report_interval(grpc_lb_v1_InitialLoadBalanceResponse *msg, struct google_protobuf_Duration *value)
Definition: load_balancer.upb.h:278
UPB_INLINE grpc_lb_v1_InitialLoadBalanceRequest * grpc_lb_v1_InitialLoadBalanceRequest_new(upb_arena *arena)
Definition: load_balancer.upb.h:106
UPB_INLINE const grpc_lb_v1_InitialLoadBalanceResponse * grpc_lb_v1_LoadBalanceResponse_initial_response(const grpc_lb_v1_LoadBalanceResponse *msg)
Definition: load_balancer.upb.h:229
UPB_INLINE struct grpc_lb_v1_ClientStatsPerToken * grpc_lb_v1_ClientStats_add_calls_finished_with_drop(grpc_lb_v1_ClientStats *msg, upb_arena *arena)
Definition: load_balancer.upb.h:199
grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_oneofcases
Definition: load_balancer.upb.h:67
@ grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_client_stats
Definition: load_balancer.upb.h:69
@ grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_NOT_SET
Definition: load_balancer.upb.h:70
@ grpc_lb_v1_LoadBalanceRequest_load_balance_request_type_initial_request
Definition: load_balancer.upb.h:68
UPB_INLINE struct grpc_lb_v1_ClientStats * grpc_lb_v1_LoadBalanceRequest_mutable_client_stats(grpc_lb_v1_LoadBalanceRequest *msg, upb_arena *arena)
Definition: load_balancer.upb.h:94
UPB_INLINE void grpc_lb_v1_ClientStats_set_num_calls_finished(grpc_lb_v1_ClientStats *msg, int64_t value)
Definition: load_balancer.upb.h:184
UPB_INLINE grpc_lb_v1_ClientStats * grpc_lb_v1_ClientStats_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:153
UPB_INLINE struct grpc_lb_v1_InitialLoadBalanceResponse * grpc_lb_v1_LoadBalanceResponse_mutable_initial_response(grpc_lb_v1_LoadBalanceResponse *msg, upb_arena *arena)
Definition: load_balancer.upb.h:236
UPB_INLINE char * grpc_lb_v1_ClientStatsPerToken_serialize(const grpc_lb_v1_ClientStatsPerToken *msg, upb_arena *arena, size_t *len)
Definition: load_balancer.upb.h:134
UPB_INLINE void grpc_lb_v1_ClientStats_set_timestamp(grpc_lb_v1_ClientStats *msg, struct google_protobuf_Timestamp *value)
Definition: load_balancer.upb.h:169
struct grpc_lb_v1_ClientStats grpc_lb_v1_ClientStats
Definition: load_balancer.upb.h:34
UPB_INLINE void grpc_lb_v1_ClientStatsPerToken_set_load_balance_token(grpc_lb_v1_ClientStatsPerToken *msg, upb_strview value)
Definition: load_balancer.upb.h:141
UPB_INLINE struct google_protobuf_Duration * grpc_lb_v1_InitialLoadBalanceResponse_mutable_client_stats_report_interval(grpc_lb_v1_InitialLoadBalanceResponse *msg, upb_arena *arena)
Definition: load_balancer.upb.h:281
UPB_INLINE int32_t grpc_lb_v1_Server_port(const grpc_lb_v1_Server *msg)
Definition: load_balancer.upb.h:336
UPB_INLINE grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_oneofcases grpc_lb_v1_LoadBalanceResponse_load_balance_response_type_case(const grpc_lb_v1_LoadBalanceResponse *msg)
Definition: load_balancer.upb.h:226
UPB_INLINE grpc_lb_v1_ClientStatsPerToken * grpc_lb_v1_ClientStatsPerToken_parse(const char *buf, size_t size, upb_arena *arena)
Definition: load_balancer.upb.h:129
UPB_INLINE void grpc_lb_v1_ClientStatsPerToken_set_num_calls(grpc_lb_v1_ClientStatsPerToken *msg, int64_t value)
Definition: load_balancer.upb.h:144
UPB_INLINE grpc_lb_v1_ClientStatsPerToken ** grpc_lb_v1_ClientStats_resize_calls_finished_with_drop(grpc_lb_v1_ClientStats *msg, size_t len, upb_arena *arena)
Definition: load_balancer.upb.h:196
struct google_protobuf_Timestamp google_protobuf_Timestamp
Definition: timestamp.upb.h:24