|
|
|
@ -31,11 +31,12 @@ |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
/* Automatically generated nanopb header */ |
|
|
|
|
/* Generated by nanopb-0.3.5-dev */ |
|
|
|
|
/* Generated by nanopb-0.3.7-dev */ |
|
|
|
|
|
|
|
|
|
#ifndef GRPC_CORE_EXT_LB_POLICY_GRPCLB_PROTO_GRPC_LB_V1_LOAD_BALANCER_PB_H |
|
|
|
|
#define GRPC_CORE_EXT_LB_POLICY_GRPCLB_PROTO_GRPC_LB_V1_LOAD_BALANCER_PB_H |
|
|
|
|
#ifndef PB_GRPC_LB_V1_LOAD_BALANCER_PB_H_INCLUDED |
|
|
|
|
#define PB_GRPC_LB_V1_LOAD_BALANCER_PB_H_INCLUDED |
|
|
|
|
#include "third_party/nanopb/pb.h" |
|
|
|
|
/* @@protoc_insertion_point(includes) */ |
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 30 |
|
|
|
|
#error Regenerate this file with the current version of nanopb generator. |
|
|
|
|
#endif |
|
|
|
@ -52,6 +53,7 @@ typedef struct _grpc_lb_v1_ClientStats { |
|
|
|
|
int64_t client_rpc_errors; |
|
|
|
|
bool has_dropped_requests; |
|
|
|
|
int64_t dropped_requests; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_ClientStats) */ |
|
|
|
|
} grpc_lb_v1_ClientStats; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_Duration { |
|
|
|
@ -59,22 +61,26 @@ typedef struct _grpc_lb_v1_Duration { |
|
|
|
|
int64_t seconds; |
|
|
|
|
bool has_nanos; |
|
|
|
|
int32_t nanos; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_Duration) */ |
|
|
|
|
} grpc_lb_v1_Duration; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_InitialLoadBalanceRequest { |
|
|
|
|
bool has_name; |
|
|
|
|
char name[128]; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_InitialLoadBalanceRequest) */ |
|
|
|
|
} grpc_lb_v1_InitialLoadBalanceRequest; |
|
|
|
|
|
|
|
|
|
typedef PB_BYTES_ARRAY_T(46) grpc_lb_v1_Server_ip_address_t; |
|
|
|
|
typedef struct _grpc_lb_v1_Server { |
|
|
|
|
bool has_ip_address; |
|
|
|
|
char ip_address[46]; |
|
|
|
|
grpc_lb_v1_Server_ip_address_t ip_address; |
|
|
|
|
bool has_port; |
|
|
|
|
int32_t port; |
|
|
|
|
bool has_load_balance_token; |
|
|
|
|
char load_balance_token[64]; |
|
|
|
|
bool has_drop_request; |
|
|
|
|
bool drop_request; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_Server) */ |
|
|
|
|
} grpc_lb_v1_Server; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_InitialLoadBalanceResponse { |
|
|
|
@ -82,6 +88,7 @@ typedef struct _grpc_lb_v1_InitialLoadBalanceResponse { |
|
|
|
|
char load_balancer_delegate[64]; |
|
|
|
|
bool has_client_stats_report_interval; |
|
|
|
|
grpc_lb_v1_Duration client_stats_report_interval; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_InitialLoadBalanceResponse) */ |
|
|
|
|
} grpc_lb_v1_InitialLoadBalanceResponse; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_LoadBalanceRequest { |
|
|
|
@ -89,12 +96,14 @@ typedef struct _grpc_lb_v1_LoadBalanceRequest { |
|
|
|
|
grpc_lb_v1_InitialLoadBalanceRequest initial_request; |
|
|
|
|
bool has_client_stats; |
|
|
|
|
grpc_lb_v1_ClientStats client_stats; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_LoadBalanceRequest) */ |
|
|
|
|
} grpc_lb_v1_LoadBalanceRequest; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_ServerList { |
|
|
|
|
pb_callback_t servers; |
|
|
|
|
bool has_expiration_interval; |
|
|
|
|
grpc_lb_v1_Duration expiration_interval; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_ServerList) */ |
|
|
|
|
} grpc_lb_v1_ServerList; |
|
|
|
|
|
|
|
|
|
typedef struct _grpc_lb_v1_LoadBalanceResponse { |
|
|
|
@ -102,6 +111,7 @@ typedef struct _grpc_lb_v1_LoadBalanceResponse { |
|
|
|
|
grpc_lb_v1_InitialLoadBalanceResponse initial_response; |
|
|
|
|
bool has_server_list; |
|
|
|
|
grpc_lb_v1_ServerList server_list; |
|
|
|
|
/* @@protoc_insertion_point(struct:grpc_lb_v1_LoadBalanceResponse) */ |
|
|
|
|
} grpc_lb_v1_LoadBalanceResponse; |
|
|
|
|
|
|
|
|
|
/* Default values for struct fields */ |
|
|
|
@ -114,7 +124,7 @@ typedef struct _grpc_lb_v1_LoadBalanceResponse { |
|
|
|
|
#define grpc_lb_v1_LoadBalanceResponse_init_default {false, grpc_lb_v1_InitialLoadBalanceResponse_init_default, false, grpc_lb_v1_ServerList_init_default} |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_init_default {false, "", false, grpc_lb_v1_Duration_init_default} |
|
|
|
|
#define grpc_lb_v1_ServerList_init_default {{{NULL}, NULL}, false, grpc_lb_v1_Duration_init_default} |
|
|
|
|
#define grpc_lb_v1_Server_init_default {false, "", false, 0, false, "", false, 0} |
|
|
|
|
#define grpc_lb_v1_Server_init_default {false, {0, {0}}, false, 0, false, "", false, 0} |
|
|
|
|
#define grpc_lb_v1_Duration_init_zero {false, 0, false, 0} |
|
|
|
|
#define grpc_lb_v1_LoadBalanceRequest_init_zero {false, grpc_lb_v1_InitialLoadBalanceRequest_init_zero, false, grpc_lb_v1_ClientStats_init_zero} |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceRequest_init_zero {false, ""} |
|
|
|
@ -122,7 +132,7 @@ typedef struct _grpc_lb_v1_LoadBalanceResponse { |
|
|
|
|
#define grpc_lb_v1_LoadBalanceResponse_init_zero {false, grpc_lb_v1_InitialLoadBalanceResponse_init_zero, false, grpc_lb_v1_ServerList_init_zero} |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_init_zero {false, "", false, grpc_lb_v1_Duration_init_zero} |
|
|
|
|
#define grpc_lb_v1_ServerList_init_zero {{{NULL}, NULL}, false, grpc_lb_v1_Duration_init_zero} |
|
|
|
|
#define grpc_lb_v1_Server_init_zero {false, "", false, 0, false, "", false, 0} |
|
|
|
|
#define grpc_lb_v1_Server_init_zero {false, {0, {0}}, false, 0, false, "", false, 0} |
|
|
|
|
|
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */ |
|
|
|
|
#define grpc_lb_v1_ClientStats_total_requests_tag 1 |
|
|
|
@ -135,7 +145,7 @@ typedef struct _grpc_lb_v1_LoadBalanceResponse { |
|
|
|
|
#define grpc_lb_v1_Server_port_tag 2 |
|
|
|
|
#define grpc_lb_v1_Server_load_balance_token_tag 3 |
|
|
|
|
#define grpc_lb_v1_Server_drop_request_tag 4 |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_load_balancer_delegate_tag 2 |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_load_balancer_delegate_tag 1 |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_client_stats_report_interval_tag 3 |
|
|
|
|
#define grpc_lb_v1_LoadBalanceRequest_initial_request_tag 1 |
|
|
|
|
#define grpc_lb_v1_LoadBalanceRequest_client_stats_tag 2 |
|
|
|
@ -161,6 +171,7 @@ extern const pb_field_t grpc_lb_v1_Server_fields[5]; |
|
|
|
|
#define grpc_lb_v1_ClientStats_size 33 |
|
|
|
|
#define grpc_lb_v1_LoadBalanceResponse_size (98 + grpc_lb_v1_ServerList_size) |
|
|
|
|
#define grpc_lb_v1_InitialLoadBalanceResponse_size 90 |
|
|
|
|
/* grpc_lb_v1_ServerList_size depends on runtime parameters */ |
|
|
|
|
#define grpc_lb_v1_Server_size 127 |
|
|
|
|
|
|
|
|
|
/* Message IDs (where set with "msgid" option) */ |
|
|
|
@ -174,5 +185,6 @@ extern const pb_field_t grpc_lb_v1_Server_fields[5]; |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} /* extern "C" */ |
|
|
|
|
#endif |
|
|
|
|
/* @@protoc_insertion_point(eof) */ |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|