• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     src/proto/grpc/gcp/handshaker.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #include <stddef.h>
10 #include "upb/msg.h"
11 #include "src/proto/grpc/gcp/handshaker.upb.h"
12 #include "src/proto/grpc/gcp/transport_security_common.upb.h"
13 
14 #include "upb/port_def.inc"
15 
16 static const upb_msglayout_field grpc_gcp_Endpoint__fields[3] = {
17   {1, UPB_SIZE(8, 8), 0, 0, 9, 1},
18   {2, UPB_SIZE(4, 4), 0, 0, 5, 1},
19   {3, UPB_SIZE(0, 0), 0, 0, 14, 1},
20 };
21 
22 const upb_msglayout grpc_gcp_Endpoint_msginit = {
23   NULL,
24   &grpc_gcp_Endpoint__fields[0],
25   UPB_SIZE(16, 32), 3, false, 255,
26 };
27 
28 static const upb_msglayout *const grpc_gcp_Identity_submsgs[1] = {
29   &grpc_gcp_Identity_AttributesEntry_msginit,
30 };
31 
32 static const upb_msglayout_field grpc_gcp_Identity__fields[3] = {
33   {1, UPB_SIZE(4, 8), UPB_SIZE(-13, -25), 0, 9, 1},
34   {2, UPB_SIZE(4, 8), UPB_SIZE(-13, -25), 0, 9, 1},
35   {3, UPB_SIZE(0, 0), 0, 0, 11, _UPB_LABEL_MAP},
36 };
37 
38 const upb_msglayout grpc_gcp_Identity_msginit = {
39   &grpc_gcp_Identity_submsgs[0],
40   &grpc_gcp_Identity__fields[0],
41   UPB_SIZE(16, 32), 3, false, 255,
42 };
43 
44 static const upb_msglayout_field grpc_gcp_Identity_AttributesEntry__fields[2] = {
45   {1, UPB_SIZE(0, 0), 0, 0, 9, 1},
46   {2, UPB_SIZE(8, 16), 0, 0, 9, 1},
47 };
48 
49 const upb_msglayout grpc_gcp_Identity_AttributesEntry_msginit = {
50   NULL,
51   &grpc_gcp_Identity_AttributesEntry__fields[0],
52   UPB_SIZE(16, 32), 2, false, 255,
53 };
54 
55 static const upb_msglayout *const grpc_gcp_StartClientHandshakeReq_submsgs[3] = {
56   &grpc_gcp_Endpoint_msginit,
57   &grpc_gcp_Identity_msginit,
58   &grpc_gcp_RpcProtocolVersions_msginit,
59 };
60 
61 static const upb_msglayout_field grpc_gcp_StartClientHandshakeReq__fields[10] = {
62   {1, UPB_SIZE(4, 4), 0, 0, 14, 1},
63   {2, UPB_SIZE(36, 64), 0, 0, 9, 3},
64   {3, UPB_SIZE(40, 72), 0, 0, 9, 3},
65   {4, UPB_SIZE(44, 80), 0, 1, 11, 3},
66   {5, UPB_SIZE(20, 32), 1, 1, 11, 1},
67   {6, UPB_SIZE(24, 40), 2, 0, 11, 1},
68   {7, UPB_SIZE(28, 48), 3, 0, 11, 1},
69   {8, UPB_SIZE(12, 16), 0, 0, 9, 1},
70   {9, UPB_SIZE(32, 56), 4, 2, 11, 1},
71   {10, UPB_SIZE(8, 8), 0, 0, 13, 1},
72 };
73 
74 const upb_msglayout grpc_gcp_StartClientHandshakeReq_msginit = {
75   &grpc_gcp_StartClientHandshakeReq_submsgs[0],
76   &grpc_gcp_StartClientHandshakeReq__fields[0],
77   UPB_SIZE(48, 96), 10, false, 255,
78 };
79 
80 static const upb_msglayout *const grpc_gcp_ServerHandshakeParameters_submsgs[1] = {
81   &grpc_gcp_Identity_msginit,
82 };
83 
84 static const upb_msglayout_field grpc_gcp_ServerHandshakeParameters__fields[2] = {
85   {1, UPB_SIZE(0, 0), 0, 0, 9, 3},
86   {2, UPB_SIZE(4, 8), 0, 0, 11, 3},
87 };
88 
89 const upb_msglayout grpc_gcp_ServerHandshakeParameters_msginit = {
90   &grpc_gcp_ServerHandshakeParameters_submsgs[0],
91   &grpc_gcp_ServerHandshakeParameters__fields[0],
92   UPB_SIZE(8, 16), 2, false, 255,
93 };
94 
95 static const upb_msglayout *const grpc_gcp_StartServerHandshakeReq_submsgs[3] = {
96   &grpc_gcp_Endpoint_msginit,
97   &grpc_gcp_RpcProtocolVersions_msginit,
98   &grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_msginit,
99 };
100 
101 static const upb_msglayout_field grpc_gcp_StartServerHandshakeReq__fields[7] = {
102   {1, UPB_SIZE(28, 48), 0, 0, 9, 3},
103   {2, UPB_SIZE(32, 56), 0, 2, 11, _UPB_LABEL_MAP},
104   {3, UPB_SIZE(8, 8), 0, 0, 12, 1},
105   {4, UPB_SIZE(16, 24), 1, 0, 11, 1},
106   {5, UPB_SIZE(20, 32), 2, 0, 11, 1},
107   {6, UPB_SIZE(24, 40), 3, 1, 11, 1},
108   {7, UPB_SIZE(4, 4), 0, 0, 13, 1},
109 };
110 
111 const upb_msglayout grpc_gcp_StartServerHandshakeReq_msginit = {
112   &grpc_gcp_StartServerHandshakeReq_submsgs[0],
113   &grpc_gcp_StartServerHandshakeReq__fields[0],
114   UPB_SIZE(40, 64), 7, false, 255,
115 };
116 
117 static const upb_msglayout *const grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_submsgs[1] = {
118   &grpc_gcp_ServerHandshakeParameters_msginit,
119 };
120 
121 static const upb_msglayout_field grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry__fields[2] = {
122   {1, UPB_SIZE(0, 0), 0, 0, 5, 1},
123   {2, UPB_SIZE(8, 16), 0, 0, 11, 1},
124 };
125 
126 const upb_msglayout grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_msginit = {
127   &grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_submsgs[0],
128   &grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry__fields[0],
129   UPB_SIZE(16, 32), 2, false, 255,
130 };
131 
132 static const upb_msglayout_field grpc_gcp_NextHandshakeMessageReq__fields[1] = {
133   {1, UPB_SIZE(0, 0), 0, 0, 12, 1},
134 };
135 
136 const upb_msglayout grpc_gcp_NextHandshakeMessageReq_msginit = {
137   NULL,
138   &grpc_gcp_NextHandshakeMessageReq__fields[0],
139   UPB_SIZE(8, 16), 1, false, 255,
140 };
141 
142 static const upb_msglayout *const grpc_gcp_HandshakerReq_submsgs[3] = {
143   &grpc_gcp_NextHandshakeMessageReq_msginit,
144   &grpc_gcp_StartClientHandshakeReq_msginit,
145   &grpc_gcp_StartServerHandshakeReq_msginit,
146 };
147 
148 static const upb_msglayout_field grpc_gcp_HandshakerReq__fields[3] = {
149   {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
150   {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
151   {3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
152 };
153 
154 const upb_msglayout grpc_gcp_HandshakerReq_msginit = {
155   &grpc_gcp_HandshakerReq_submsgs[0],
156   &grpc_gcp_HandshakerReq__fields[0],
157   UPB_SIZE(8, 16), 3, false, 255,
158 };
159 
160 static const upb_msglayout *const grpc_gcp_HandshakerResult_submsgs[2] = {
161   &grpc_gcp_Identity_msginit,
162   &grpc_gcp_RpcProtocolVersions_msginit,
163 };
164 
165 static const upb_msglayout_field grpc_gcp_HandshakerResult__fields[8] = {
166   {1, UPB_SIZE(12, 16), 0, 0, 9, 1},
167   {2, UPB_SIZE(20, 32), 0, 0, 9, 1},
168   {3, UPB_SIZE(28, 48), 0, 0, 12, 1},
169   {4, UPB_SIZE(36, 64), 1, 0, 11, 1},
170   {5, UPB_SIZE(40, 72), 2, 0, 11, 1},
171   {6, UPB_SIZE(8, 8), 0, 0, 8, 1},
172   {7, UPB_SIZE(44, 80), 3, 1, 11, 1},
173   {8, UPB_SIZE(4, 4), 0, 0, 13, 1},
174 };
175 
176 const upb_msglayout grpc_gcp_HandshakerResult_msginit = {
177   &grpc_gcp_HandshakerResult_submsgs[0],
178   &grpc_gcp_HandshakerResult__fields[0],
179   UPB_SIZE(48, 96), 8, false, 255,
180 };
181 
182 static const upb_msglayout_field grpc_gcp_HandshakerStatus__fields[2] = {
183   {1, UPB_SIZE(0, 0), 0, 0, 13, 1},
184   {2, UPB_SIZE(4, 8), 0, 0, 9, 1},
185 };
186 
187 const upb_msglayout grpc_gcp_HandshakerStatus_msginit = {
188   NULL,
189   &grpc_gcp_HandshakerStatus__fields[0],
190   UPB_SIZE(16, 32), 2, false, 255,
191 };
192 
193 static const upb_msglayout *const grpc_gcp_HandshakerResp_submsgs[2] = {
194   &grpc_gcp_HandshakerResult_msginit,
195   &grpc_gcp_HandshakerStatus_msginit,
196 };
197 
198 static const upb_msglayout_field grpc_gcp_HandshakerResp__fields[4] = {
199   {1, UPB_SIZE(8, 8), 0, 0, 12, 1},
200   {2, UPB_SIZE(4, 4), 0, 0, 13, 1},
201   {3, UPB_SIZE(16, 24), 1, 0, 11, 1},
202   {4, UPB_SIZE(20, 32), 2, 1, 11, 1},
203 };
204 
205 const upb_msglayout grpc_gcp_HandshakerResp_msginit = {
206   &grpc_gcp_HandshakerResp_submsgs[0],
207   &grpc_gcp_HandshakerResp__fields[0],
208   UPB_SIZE(24, 48), 4, false, 255,
209 };
210 
211 #include "upb/port_undef.inc"
212 
213