• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Automatically generated nanopb header */
2 /* Generated by nanopb-0.3.7-dev */
3 
4 #ifndef PB_GRPC_GCP_HANDSHAKER_PB_H_INCLUDED
5 #define PB_GRPC_GCP_HANDSHAKER_PB_H_INCLUDED
6 #include "pb.h"
7 #include "src/core/tsi/alts/handshaker/transport_security_common.pb.h"
8 /* @@protoc_insertion_point(includes) */
9 #if PB_PROTO_HEADER_VERSION != 30
10 #error Regenerate this file with the current version of nanopb generator.
11 #endif
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /* Enum definitions */
18 typedef enum _grpc_gcp_HandshakeProtocol {
19     grpc_gcp_HandshakeProtocol_HANDSHAKE_PROTOCOL_UNSPECIFIED = 0,
20     grpc_gcp_HandshakeProtocol_TLS = 1,
21     grpc_gcp_HandshakeProtocol_ALTS = 2
22 } grpc_gcp_HandshakeProtocol;
23 #define _grpc_gcp_HandshakeProtocol_MIN grpc_gcp_HandshakeProtocol_HANDSHAKE_PROTOCOL_UNSPECIFIED
24 #define _grpc_gcp_HandshakeProtocol_MAX grpc_gcp_HandshakeProtocol_ALTS
25 #define _grpc_gcp_HandshakeProtocol_ARRAYSIZE ((grpc_gcp_HandshakeProtocol)(grpc_gcp_HandshakeProtocol_ALTS+1))
26 
27 typedef enum _grpc_gcp_NetworkProtocol {
28     grpc_gcp_NetworkProtocol_NETWORK_PROTOCOL_UNSPECIFIED = 0,
29     grpc_gcp_NetworkProtocol_TCP = 1,
30     grpc_gcp_NetworkProtocol_UDP = 2
31 } grpc_gcp_NetworkProtocol;
32 #define _grpc_gcp_NetworkProtocol_MIN grpc_gcp_NetworkProtocol_NETWORK_PROTOCOL_UNSPECIFIED
33 #define _grpc_gcp_NetworkProtocol_MAX grpc_gcp_NetworkProtocol_UDP
34 #define _grpc_gcp_NetworkProtocol_ARRAYSIZE ((grpc_gcp_NetworkProtocol)(grpc_gcp_NetworkProtocol_UDP+1))
35 
36 /* Struct definitions */
37 typedef struct _grpc_gcp_Identity {
38     pb_callback_t service_account;
39     pb_callback_t hostname;
40 /* @@protoc_insertion_point(struct:grpc_gcp_Identity) */
41 } grpc_gcp_Identity;
42 
43 typedef struct _grpc_gcp_NextHandshakeMessageReq {
44     pb_callback_t in_bytes;
45 /* @@protoc_insertion_point(struct:grpc_gcp_NextHandshakeMessageReq) */
46 } grpc_gcp_NextHandshakeMessageReq;
47 
48 typedef struct _grpc_gcp_ServerHandshakeParameters {
49     pb_callback_t record_protocols;
50     pb_callback_t local_identities;
51 /* @@protoc_insertion_point(struct:grpc_gcp_ServerHandshakeParameters) */
52 } grpc_gcp_ServerHandshakeParameters;
53 
54 typedef struct _grpc_gcp_Endpoint {
55     pb_callback_t ip_address;
56     bool has_port;
57     int32_t port;
58     bool has_protocol;
59     grpc_gcp_NetworkProtocol protocol;
60 /* @@protoc_insertion_point(struct:grpc_gcp_Endpoint) */
61 } grpc_gcp_Endpoint;
62 
63 typedef struct _grpc_gcp_HandshakerResult {
64     pb_callback_t application_protocol;
65     pb_callback_t record_protocol;
66     pb_callback_t key_data;
67     bool has_peer_identity;
68     grpc_gcp_Identity peer_identity;
69     bool has_local_identity;
70     grpc_gcp_Identity local_identity;
71     bool has_keep_channel_open;
72     bool keep_channel_open;
73     bool has_peer_rpc_versions;
74     grpc_gcp_RpcProtocolVersions peer_rpc_versions;
75 /* @@protoc_insertion_point(struct:grpc_gcp_HandshakerResult) */
76 } grpc_gcp_HandshakerResult;
77 
78 typedef struct _grpc_gcp_HandshakerStatus {
79     bool has_code;
80     uint32_t code;
81     pb_callback_t details;
82 /* @@protoc_insertion_point(struct:grpc_gcp_HandshakerStatus) */
83 } grpc_gcp_HandshakerStatus;
84 
85 typedef struct _grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry {
86     bool has_key;
87     int32_t key;
88     bool has_value;
89     grpc_gcp_ServerHandshakeParameters value;
90 /* @@protoc_insertion_point(struct:grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry) */
91 } grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry;
92 
93 typedef struct _grpc_gcp_HandshakerResp {
94     pb_callback_t out_frames;
95     bool has_bytes_consumed;
96     uint32_t bytes_consumed;
97     bool has_result;
98     grpc_gcp_HandshakerResult result;
99     bool has_status;
100     grpc_gcp_HandshakerStatus status;
101 /* @@protoc_insertion_point(struct:grpc_gcp_HandshakerResp) */
102 } grpc_gcp_HandshakerResp;
103 
104 typedef struct _grpc_gcp_StartClientHandshakeReq {
105     bool has_handshake_security_protocol;
106     grpc_gcp_HandshakeProtocol handshake_security_protocol;
107     pb_callback_t application_protocols;
108     pb_callback_t record_protocols;
109     pb_callback_t target_identities;
110     bool has_local_identity;
111     grpc_gcp_Identity local_identity;
112     bool has_local_endpoint;
113     grpc_gcp_Endpoint local_endpoint;
114     bool has_remote_endpoint;
115     grpc_gcp_Endpoint remote_endpoint;
116     pb_callback_t target_name;
117     bool has_rpc_versions;
118     grpc_gcp_RpcProtocolVersions rpc_versions;
119 /* @@protoc_insertion_point(struct:grpc_gcp_StartClientHandshakeReq) */
120 } grpc_gcp_StartClientHandshakeReq;
121 
122 typedef struct _grpc_gcp_StartServerHandshakeReq {
123     pb_callback_t application_protocols;
124     pb_size_t handshake_parameters_count;
125     grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry handshake_parameters[3];
126     pb_callback_t in_bytes;
127     bool has_local_endpoint;
128     grpc_gcp_Endpoint local_endpoint;
129     bool has_remote_endpoint;
130     grpc_gcp_Endpoint remote_endpoint;
131     bool has_rpc_versions;
132     grpc_gcp_RpcProtocolVersions rpc_versions;
133 /* @@protoc_insertion_point(struct:grpc_gcp_StartServerHandshakeReq) */
134 } grpc_gcp_StartServerHandshakeReq;
135 
136 typedef struct _grpc_gcp_HandshakerReq {
137     bool has_client_start;
138     grpc_gcp_StartClientHandshakeReq client_start;
139     bool has_server_start;
140     grpc_gcp_StartServerHandshakeReq server_start;
141     bool has_next;
142     grpc_gcp_NextHandshakeMessageReq next;
143 /* @@protoc_insertion_point(struct:grpc_gcp_HandshakerReq) */
144 } grpc_gcp_HandshakerReq;
145 
146 /* Default values for struct fields */
147 
148 /* Initializer values for message structs */
149 #define grpc_gcp_Endpoint_init_default           {{{NULL}, NULL}, false, 0, false, (grpc_gcp_NetworkProtocol)0}
150 #define grpc_gcp_Identity_init_default           {{{NULL}, NULL}, {{NULL}, NULL}}
151 #define grpc_gcp_StartClientHandshakeReq_init_default {false, (grpc_gcp_HandshakeProtocol)0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, grpc_gcp_Identity_init_default, false, grpc_gcp_Endpoint_init_default, false, grpc_gcp_Endpoint_init_default, {{NULL}, NULL}, false, grpc_gcp_RpcProtocolVersions_init_default}
152 #define grpc_gcp_ServerHandshakeParameters_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
153 #define grpc_gcp_StartServerHandshakeReq_init_default {{{NULL}, NULL}, 0, {grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_default, grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_default, grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_default}, {{NULL}, NULL}, false, grpc_gcp_Endpoint_init_default, false, grpc_gcp_Endpoint_init_default, false, grpc_gcp_RpcProtocolVersions_init_default}
154 #define grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_default {false, 0, false, grpc_gcp_ServerHandshakeParameters_init_default}
155 #define grpc_gcp_NextHandshakeMessageReq_init_default {{{NULL}, NULL}}
156 #define grpc_gcp_HandshakerReq_init_default      {false, grpc_gcp_StartClientHandshakeReq_init_default, false, grpc_gcp_StartServerHandshakeReq_init_default, false, grpc_gcp_NextHandshakeMessageReq_init_default}
157 #define grpc_gcp_HandshakerResult_init_default   {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, grpc_gcp_Identity_init_default, false, grpc_gcp_Identity_init_default, false, 0, false, grpc_gcp_RpcProtocolVersions_init_default}
158 #define grpc_gcp_HandshakerStatus_init_default   {false, 0, {{NULL}, NULL}}
159 #define grpc_gcp_HandshakerResp_init_default     {{{NULL}, NULL}, false, 0, false, grpc_gcp_HandshakerResult_init_default, false, grpc_gcp_HandshakerStatus_init_default}
160 #define grpc_gcp_Endpoint_init_zero              {{{NULL}, NULL}, false, 0, false, (grpc_gcp_NetworkProtocol)0}
161 #define grpc_gcp_Identity_init_zero              {{{NULL}, NULL}, {{NULL}, NULL}}
162 #define grpc_gcp_StartClientHandshakeReq_init_zero {false, (grpc_gcp_HandshakeProtocol)0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, grpc_gcp_Identity_init_zero, false, grpc_gcp_Endpoint_init_zero, false, grpc_gcp_Endpoint_init_zero, {{NULL}, NULL}, false, grpc_gcp_RpcProtocolVersions_init_zero}
163 #define grpc_gcp_ServerHandshakeParameters_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
164 #define grpc_gcp_StartServerHandshakeReq_init_zero {{{NULL}, NULL}, 0, {grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_zero, grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_zero, grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_zero}, {{NULL}, NULL}, false, grpc_gcp_Endpoint_init_zero, false, grpc_gcp_Endpoint_init_zero, false, grpc_gcp_RpcProtocolVersions_init_zero}
165 #define grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_init_zero {false, 0, false, grpc_gcp_ServerHandshakeParameters_init_zero}
166 #define grpc_gcp_NextHandshakeMessageReq_init_zero {{{NULL}, NULL}}
167 #define grpc_gcp_HandshakerReq_init_zero         {false, grpc_gcp_StartClientHandshakeReq_init_zero, false, grpc_gcp_StartServerHandshakeReq_init_zero, false, grpc_gcp_NextHandshakeMessageReq_init_zero}
168 #define grpc_gcp_HandshakerResult_init_zero      {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, grpc_gcp_Identity_init_zero, false, grpc_gcp_Identity_init_zero, false, 0, false, grpc_gcp_RpcProtocolVersions_init_zero}
169 #define grpc_gcp_HandshakerStatus_init_zero      {false, 0, {{NULL}, NULL}}
170 #define grpc_gcp_HandshakerResp_init_zero        {{{NULL}, NULL}, false, 0, false, grpc_gcp_HandshakerResult_init_zero, false, grpc_gcp_HandshakerStatus_init_zero}
171 
172 /* Field tags (for use in manual encoding/decoding) */
173 #define grpc_gcp_Identity_service_account_tag    1
174 #define grpc_gcp_Identity_hostname_tag           2
175 #define grpc_gcp_NextHandshakeMessageReq_in_bytes_tag 1
176 #define grpc_gcp_ServerHandshakeParameters_record_protocols_tag 1
177 #define grpc_gcp_ServerHandshakeParameters_local_identities_tag 2
178 #define grpc_gcp_Endpoint_ip_address_tag         1
179 #define grpc_gcp_Endpoint_port_tag               2
180 #define grpc_gcp_Endpoint_protocol_tag           3
181 #define grpc_gcp_HandshakerResult_application_protocol_tag 1
182 #define grpc_gcp_HandshakerResult_record_protocol_tag 2
183 #define grpc_gcp_HandshakerResult_key_data_tag   3
184 #define grpc_gcp_HandshakerResult_peer_identity_tag 4
185 #define grpc_gcp_HandshakerResult_local_identity_tag 5
186 #define grpc_gcp_HandshakerResult_keep_channel_open_tag 6
187 #define grpc_gcp_HandshakerResult_peer_rpc_versions_tag 7
188 #define grpc_gcp_HandshakerStatus_code_tag       1
189 #define grpc_gcp_HandshakerStatus_details_tag    2
190 #define grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_key_tag 1
191 #define grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_value_tag 2
192 #define grpc_gcp_HandshakerResp_out_frames_tag   1
193 #define grpc_gcp_HandshakerResp_bytes_consumed_tag 2
194 #define grpc_gcp_HandshakerResp_result_tag       3
195 #define grpc_gcp_HandshakerResp_status_tag       4
196 #define grpc_gcp_StartClientHandshakeReq_handshake_security_protocol_tag 1
197 #define grpc_gcp_StartClientHandshakeReq_application_protocols_tag 2
198 #define grpc_gcp_StartClientHandshakeReq_record_protocols_tag 3
199 #define grpc_gcp_StartClientHandshakeReq_target_identities_tag 4
200 #define grpc_gcp_StartClientHandshakeReq_local_identity_tag 5
201 #define grpc_gcp_StartClientHandshakeReq_local_endpoint_tag 6
202 #define grpc_gcp_StartClientHandshakeReq_remote_endpoint_tag 7
203 #define grpc_gcp_StartClientHandshakeReq_target_name_tag 8
204 #define grpc_gcp_StartClientHandshakeReq_rpc_versions_tag 9
205 #define grpc_gcp_StartServerHandshakeReq_application_protocols_tag 1
206 #define grpc_gcp_StartServerHandshakeReq_handshake_parameters_tag 2
207 #define grpc_gcp_StartServerHandshakeReq_in_bytes_tag 3
208 #define grpc_gcp_StartServerHandshakeReq_local_endpoint_tag 4
209 #define grpc_gcp_StartServerHandshakeReq_remote_endpoint_tag 5
210 #define grpc_gcp_StartServerHandshakeReq_rpc_versions_tag 6
211 #define grpc_gcp_HandshakerReq_client_start_tag  1
212 #define grpc_gcp_HandshakerReq_server_start_tag  2
213 #define grpc_gcp_HandshakerReq_next_tag          3
214 
215 /* Struct field encoding specification for nanopb */
216 extern const pb_field_t grpc_gcp_Endpoint_fields[4];
217 extern const pb_field_t grpc_gcp_Identity_fields[3];
218 extern const pb_field_t grpc_gcp_StartClientHandshakeReq_fields[10];
219 extern const pb_field_t grpc_gcp_ServerHandshakeParameters_fields[3];
220 extern const pb_field_t grpc_gcp_StartServerHandshakeReq_fields[7];
221 extern const pb_field_t grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_fields[3];
222 extern const pb_field_t grpc_gcp_NextHandshakeMessageReq_fields[2];
223 extern const pb_field_t grpc_gcp_HandshakerReq_fields[4];
224 extern const pb_field_t grpc_gcp_HandshakerResult_fields[8];
225 extern const pb_field_t grpc_gcp_HandshakerStatus_fields[3];
226 extern const pb_field_t grpc_gcp_HandshakerResp_fields[5];
227 
228 /* Maximum encoded size of messages (where known) */
229 /* grpc_gcp_Endpoint_size depends on runtime parameters */
230 /* grpc_gcp_Identity_size depends on runtime parameters */
231 /* grpc_gcp_StartClientHandshakeReq_size depends on runtime parameters */
232 /* grpc_gcp_ServerHandshakeParameters_size depends on runtime parameters */
233 /* grpc_gcp_StartServerHandshakeReq_size depends on runtime parameters */
234 #define grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_size (17 + grpc_gcp_ServerHandshakeParameters_size)
235 /* grpc_gcp_NextHandshakeMessageReq_size depends on runtime parameters */
236 #define grpc_gcp_HandshakerReq_size              (18 + grpc_gcp_StartClientHandshakeReq_size + grpc_gcp_StartServerHandshakeReq_size + grpc_gcp_NextHandshakeMessageReq_size)
237 /* grpc_gcp_HandshakerResult_size depends on runtime parameters */
238 /* grpc_gcp_HandshakerStatus_size depends on runtime parameters */
239 /* grpc_gcp_HandshakerResp_size depends on runtime parameters */
240 
241 /* Message IDs (where set with "msgid" option) */
242 #ifdef PB_MSGID
243 
244 #define HANDSHAKER_MESSAGES \
245 
246 
247 #endif
248 
249 #ifdef __cplusplus
250 } /* extern "C" */
251 #endif
252 /* @@protoc_insertion_point(eof) */
253 
254 #endif
255