/src/brpc/build/test/echo.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: echo.proto |
3 | | |
4 | | #include "echo.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/io/coded_stream.h> |
9 | | #include <google/protobuf/extension_set.h> |
10 | | #include <google/protobuf/wire_format_lite.h> |
11 | | #include <google/protobuf/descriptor.h> |
12 | | #include <google/protobuf/generated_message_reflection.h> |
13 | | #include <google/protobuf/reflection_ops.h> |
14 | | #include <google/protobuf/wire_format.h> |
15 | | // @@protoc_insertion_point(includes) |
16 | | #include <google/protobuf/port_def.inc> |
17 | | |
18 | | PROTOBUF_PRAGMA_INIT_SEG |
19 | | |
20 | | namespace _pb = ::PROTOBUF_NAMESPACE_ID; |
21 | | namespace _pbi = _pb::internal; |
22 | | |
23 | | namespace test { |
24 | | PROTOBUF_CONSTEXPR EchoRequest::EchoRequest( |
25 | | ::_pbi::ConstantInitialized): _impl_{ |
26 | | /*decltype(_impl_._has_bits_)*/{} |
27 | | , /*decltype(_impl_._cached_size_)*/{} |
28 | | , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
29 | | , /*decltype(_impl_.http_header_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
30 | | , /*decltype(_impl_.code_)*/0 |
31 | | , /*decltype(_impl_.close_fd_)*/false |
32 | | , /*decltype(_impl_.sleep_us_)*/0 |
33 | | , /*decltype(_impl_.server_fail_)*/0} {} |
34 | | struct EchoRequestDefaultTypeInternal { |
35 | | PROTOBUF_CONSTEXPR EchoRequestDefaultTypeInternal() |
36 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
37 | 0 | ~EchoRequestDefaultTypeInternal() {} |
38 | | union { |
39 | | EchoRequest _instance; |
40 | | }; |
41 | | }; |
42 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
43 | | PROTOBUF_CONSTEXPR EchoResponse::EchoResponse( |
44 | | ::_pbi::ConstantInitialized): _impl_{ |
45 | | /*decltype(_impl_._has_bits_)*/{} |
46 | | , /*decltype(_impl_._cached_size_)*/{} |
47 | | , /*decltype(_impl_.code_list_)*/{} |
48 | | , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
49 | | , /*decltype(_impl_.receiving_socket_id_)*/uint64_t{0u}} {} |
50 | | struct EchoResponseDefaultTypeInternal { |
51 | | PROTOBUF_CONSTEXPR EchoResponseDefaultTypeInternal() |
52 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
53 | 0 | ~EchoResponseDefaultTypeInternal() {} |
54 | | union { |
55 | | EchoResponse _instance; |
56 | | }; |
57 | | }; |
58 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
59 | | PROTOBUF_CONSTEXPR ComboRequest::ComboRequest( |
60 | | ::_pbi::ConstantInitialized): _impl_{ |
61 | | /*decltype(_impl_.requests_)*/{} |
62 | | , /*decltype(_impl_._cached_size_)*/{}} {} |
63 | | struct ComboRequestDefaultTypeInternal { |
64 | | PROTOBUF_CONSTEXPR ComboRequestDefaultTypeInternal() |
65 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
66 | 0 | ~ComboRequestDefaultTypeInternal() {} |
67 | | union { |
68 | | ComboRequest _instance; |
69 | | }; |
70 | | }; |
71 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComboRequestDefaultTypeInternal _ComboRequest_default_instance_; |
72 | | PROTOBUF_CONSTEXPR BytesRequest::BytesRequest( |
73 | | ::_pbi::ConstantInitialized): _impl_{ |
74 | | /*decltype(_impl_._has_bits_)*/{} |
75 | | , /*decltype(_impl_._cached_size_)*/{} |
76 | | , /*decltype(_impl_.databytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} |
77 | | struct BytesRequestDefaultTypeInternal { |
78 | | PROTOBUF_CONSTEXPR BytesRequestDefaultTypeInternal() |
79 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
80 | 0 | ~BytesRequestDefaultTypeInternal() {} |
81 | | union { |
82 | | BytesRequest _instance; |
83 | | }; |
84 | | }; |
85 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BytesRequestDefaultTypeInternal _BytesRequest_default_instance_; |
86 | | PROTOBUF_CONSTEXPR BytesResponse::BytesResponse( |
87 | | ::_pbi::ConstantInitialized): _impl_{ |
88 | | /*decltype(_impl_._has_bits_)*/{} |
89 | | , /*decltype(_impl_._cached_size_)*/{} |
90 | | , /*decltype(_impl_.databytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} |
91 | | struct BytesResponseDefaultTypeInternal { |
92 | | PROTOBUF_CONSTEXPR BytesResponseDefaultTypeInternal() |
93 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
94 | 0 | ~BytesResponseDefaultTypeInternal() {} |
95 | | union { |
96 | | BytesResponse _instance; |
97 | | }; |
98 | | }; |
99 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BytesResponseDefaultTypeInternal _BytesResponse_default_instance_; |
100 | | PROTOBUF_CONSTEXPR ComboResponse::ComboResponse( |
101 | | ::_pbi::ConstantInitialized): _impl_{ |
102 | | /*decltype(_impl_.responses_)*/{} |
103 | | , /*decltype(_impl_._cached_size_)*/{}} {} |
104 | | struct ComboResponseDefaultTypeInternal { |
105 | | PROTOBUF_CONSTEXPR ComboResponseDefaultTypeInternal() |
106 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
107 | 0 | ~ComboResponseDefaultTypeInternal() {} |
108 | | union { |
109 | | ComboResponse _instance; |
110 | | }; |
111 | | }; |
112 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComboResponseDefaultTypeInternal _ComboResponse_default_instance_; |
113 | | PROTOBUF_CONSTEXPR HttpRequest::HttpRequest( |
114 | | ::_pbi::ConstantInitialized) {} |
115 | | struct HttpRequestDefaultTypeInternal { |
116 | | PROTOBUF_CONSTEXPR HttpRequestDefaultTypeInternal() |
117 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
118 | 0 | ~HttpRequestDefaultTypeInternal() {} |
119 | | union { |
120 | | HttpRequest _instance; |
121 | | }; |
122 | | }; |
123 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRequestDefaultTypeInternal _HttpRequest_default_instance_; |
124 | | PROTOBUF_CONSTEXPR HttpResponse::HttpResponse( |
125 | | ::_pbi::ConstantInitialized) {} |
126 | | struct HttpResponseDefaultTypeInternal { |
127 | | PROTOBUF_CONSTEXPR HttpResponseDefaultTypeInternal() |
128 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
129 | 0 | ~HttpResponseDefaultTypeInternal() {} |
130 | | union { |
131 | | HttpResponse _instance; |
132 | | }; |
133 | | }; |
134 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpResponseDefaultTypeInternal _HttpResponse_default_instance_; |
135 | | PROTOBUF_CONSTEXPR Message1::Message1( |
136 | | ::_pbi::ConstantInitialized): _impl_{ |
137 | | /*decltype(_impl_._has_bits_)*/{} |
138 | | , /*decltype(_impl_._cached_size_)*/{} |
139 | | , /*decltype(_impl_.stat_)*/0} {} |
140 | | struct Message1DefaultTypeInternal { |
141 | | PROTOBUF_CONSTEXPR Message1DefaultTypeInternal() |
142 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
143 | 0 | ~Message1DefaultTypeInternal() {} |
144 | | union { |
145 | | Message1 _instance; |
146 | | }; |
147 | | }; |
148 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Message1DefaultTypeInternal _Message1_default_instance_; |
149 | | PROTOBUF_CONSTEXPR Message2::Message2( |
150 | | ::_pbi::ConstantInitialized): _impl_{ |
151 | | /*decltype(_impl_._has_bits_)*/{} |
152 | | , /*decltype(_impl_._cached_size_)*/{} |
153 | | , /*decltype(_impl_.stat_)*/0} {} |
154 | | struct Message2DefaultTypeInternal { |
155 | | PROTOBUF_CONSTEXPR Message2DefaultTypeInternal() |
156 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
157 | 0 | ~Message2DefaultTypeInternal() {} |
158 | | union { |
159 | | Message2 _instance; |
160 | | }; |
161 | | }; |
162 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Message2DefaultTypeInternal _Message2_default_instance_; |
163 | | PROTOBUF_CONSTEXPR RecursiveMessage::RecursiveMessage( |
164 | | ::_pbi::ConstantInitialized): _impl_{ |
165 | | /*decltype(_impl_._has_bits_)*/{} |
166 | | , /*decltype(_impl_._cached_size_)*/{} |
167 | | , /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
168 | | , /*decltype(_impl_.child_)*/nullptr} {} |
169 | | struct RecursiveMessageDefaultTypeInternal { |
170 | | PROTOBUF_CONSTEXPR RecursiveMessageDefaultTypeInternal() |
171 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
172 | 0 | ~RecursiveMessageDefaultTypeInternal() {} |
173 | | union { |
174 | | RecursiveMessage _instance; |
175 | | }; |
176 | | }; |
177 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecursiveMessageDefaultTypeInternal _RecursiveMessage_default_instance_; |
178 | | } // namespace test |
179 | | static ::_pb::Metadata file_level_metadata_echo_2eproto[11]; |
180 | | static const ::_pb::EnumDescriptor* file_level_enum_descriptors_echo_2eproto[2]; |
181 | | static const ::_pb::ServiceDescriptor* file_level_service_descriptors_echo_2eproto[7]; |
182 | | |
183 | | const uint32_t TableStruct_echo_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
184 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_._has_bits_), |
185 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _internal_metadata_), |
186 | | ~0u, // no _extensions_ |
187 | | ~0u, // no _oneof_case_ |
188 | | ~0u, // no _weak_field_map_ |
189 | | ~0u, // no _inlined_string_donated_ |
190 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.message_), |
191 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.code_), |
192 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.close_fd_), |
193 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.sleep_us_), |
194 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.server_fail_), |
195 | | PROTOBUF_FIELD_OFFSET(::test::EchoRequest, _impl_.http_header_), |
196 | | 0, |
197 | | 2, |
198 | | 3, |
199 | | 4, |
200 | | 5, |
201 | | 1, |
202 | | PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_._has_bits_), |
203 | | PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _internal_metadata_), |
204 | | ~0u, // no _extensions_ |
205 | | ~0u, // no _oneof_case_ |
206 | | ~0u, // no _weak_field_map_ |
207 | | ~0u, // no _inlined_string_donated_ |
208 | | PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.message_), |
209 | | PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.code_list_), |
210 | | PROTOBUF_FIELD_OFFSET(::test::EchoResponse, _impl_.receiving_socket_id_), |
211 | | 0, |
212 | | ~0u, |
213 | | 1, |
214 | | ~0u, // no _has_bits_ |
215 | | PROTOBUF_FIELD_OFFSET(::test::ComboRequest, _internal_metadata_), |
216 | | ~0u, // no _extensions_ |
217 | | ~0u, // no _oneof_case_ |
218 | | ~0u, // no _weak_field_map_ |
219 | | ~0u, // no _inlined_string_donated_ |
220 | | PROTOBUF_FIELD_OFFSET(::test::ComboRequest, _impl_.requests_), |
221 | | PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _impl_._has_bits_), |
222 | | PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _internal_metadata_), |
223 | | ~0u, // no _extensions_ |
224 | | ~0u, // no _oneof_case_ |
225 | | ~0u, // no _weak_field_map_ |
226 | | ~0u, // no _inlined_string_donated_ |
227 | | PROTOBUF_FIELD_OFFSET(::test::BytesRequest, _impl_.databytes_), |
228 | | 0, |
229 | | PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _impl_._has_bits_), |
230 | | PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _internal_metadata_), |
231 | | ~0u, // no _extensions_ |
232 | | ~0u, // no _oneof_case_ |
233 | | ~0u, // no _weak_field_map_ |
234 | | ~0u, // no _inlined_string_donated_ |
235 | | PROTOBUF_FIELD_OFFSET(::test::BytesResponse, _impl_.databytes_), |
236 | | 0, |
237 | | ~0u, // no _has_bits_ |
238 | | PROTOBUF_FIELD_OFFSET(::test::ComboResponse, _internal_metadata_), |
239 | | ~0u, // no _extensions_ |
240 | | ~0u, // no _oneof_case_ |
241 | | ~0u, // no _weak_field_map_ |
242 | | ~0u, // no _inlined_string_donated_ |
243 | | PROTOBUF_FIELD_OFFSET(::test::ComboResponse, _impl_.responses_), |
244 | | ~0u, // no _has_bits_ |
245 | | PROTOBUF_FIELD_OFFSET(::test::HttpRequest, _internal_metadata_), |
246 | | ~0u, // no _extensions_ |
247 | | ~0u, // no _oneof_case_ |
248 | | ~0u, // no _weak_field_map_ |
249 | | ~0u, // no _inlined_string_donated_ |
250 | | ~0u, // no _has_bits_ |
251 | | PROTOBUF_FIELD_OFFSET(::test::HttpResponse, _internal_metadata_), |
252 | | ~0u, // no _extensions_ |
253 | | ~0u, // no _oneof_case_ |
254 | | ~0u, // no _weak_field_map_ |
255 | | ~0u, // no _inlined_string_donated_ |
256 | | PROTOBUF_FIELD_OFFSET(::test::Message1, _impl_._has_bits_), |
257 | | PROTOBUF_FIELD_OFFSET(::test::Message1, _internal_metadata_), |
258 | | ~0u, // no _extensions_ |
259 | | ~0u, // no _oneof_case_ |
260 | | ~0u, // no _weak_field_map_ |
261 | | ~0u, // no _inlined_string_donated_ |
262 | | PROTOBUF_FIELD_OFFSET(::test::Message1, _impl_.stat_), |
263 | | 0, |
264 | | PROTOBUF_FIELD_OFFSET(::test::Message2, _impl_._has_bits_), |
265 | | PROTOBUF_FIELD_OFFSET(::test::Message2, _internal_metadata_), |
266 | | ~0u, // no _extensions_ |
267 | | ~0u, // no _oneof_case_ |
268 | | ~0u, // no _weak_field_map_ |
269 | | ~0u, // no _inlined_string_donated_ |
270 | | PROTOBUF_FIELD_OFFSET(::test::Message2, _impl_.stat_), |
271 | | 0, |
272 | | PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_._has_bits_), |
273 | | PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _internal_metadata_), |
274 | | ~0u, // no _extensions_ |
275 | | ~0u, // no _oneof_case_ |
276 | | ~0u, // no _weak_field_map_ |
277 | | ~0u, // no _inlined_string_donated_ |
278 | | PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_.child_), |
279 | | PROTOBUF_FIELD_OFFSET(::test::RecursiveMessage, _impl_.data_), |
280 | | 1, |
281 | | 0, |
282 | | }; |
283 | | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
284 | | { 0, 12, -1, sizeof(::test::EchoRequest)}, |
285 | | { 18, 27, -1, sizeof(::test::EchoResponse)}, |
286 | | { 30, -1, -1, sizeof(::test::ComboRequest)}, |
287 | | { 37, 44, -1, sizeof(::test::BytesRequest)}, |
288 | | { 45, 52, -1, sizeof(::test::BytesResponse)}, |
289 | | { 53, -1, -1, sizeof(::test::ComboResponse)}, |
290 | | { 60, -1, -1, sizeof(::test::HttpRequest)}, |
291 | | { 66, -1, -1, sizeof(::test::HttpResponse)}, |
292 | | { 72, 79, -1, sizeof(::test::Message1)}, |
293 | | { 80, 87, -1, sizeof(::test::Message2)}, |
294 | | { 88, 96, -1, sizeof(::test::RecursiveMessage)}, |
295 | | }; |
296 | | |
297 | | static const ::_pb::Message* const file_default_instances[] = { |
298 | | &::test::_EchoRequest_default_instance_._instance, |
299 | | &::test::_EchoResponse_default_instance_._instance, |
300 | | &::test::_ComboRequest_default_instance_._instance, |
301 | | &::test::_BytesRequest_default_instance_._instance, |
302 | | &::test::_BytesResponse_default_instance_._instance, |
303 | | &::test::_ComboResponse_default_instance_._instance, |
304 | | &::test::_HttpRequest_default_instance_._instance, |
305 | | &::test::_HttpResponse_default_instance_._instance, |
306 | | &::test::_Message1_default_instance_._instance, |
307 | | &::test::_Message2_default_instance_._instance, |
308 | | &::test::_RecursiveMessage_default_instance_._instance, |
309 | | }; |
310 | | |
311 | | const char descriptor_table_protodef_echo_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
312 | | "\n\necho.proto\022\004test\032\021idl_options.proto\"z\n" |
313 | | "\013EchoRequest\022\017\n\007message\030\001 \002(\t\022\014\n\004code\030\002 " |
314 | | "\001(\005\022\020\n\010close_fd\030\003 \001(\010\022\020\n\010sleep_us\030\004 \001(\005\022" |
315 | | "\023\n\013server_fail\030\005 \001(\005\022\023\n\013http_header\030\006 \001(" |
316 | | "\t\"O\n\014EchoResponse\022\017\n\007message\030\001 \002(\t\022\021\n\tco" |
317 | | "de_list\030\002 \003(\005\022\033\n\023receiving_socket_id\030\003 \001" |
318 | | "(\004\"3\n\014ComboRequest\022#\n\010requests\030\001 \003(\0132\021.t" |
319 | | "est.EchoRequest\"!\n\014BytesRequest\022\021\n\tdatab" |
320 | | "ytes\030\001 \002(\014\"\"\n\rBytesResponse\022\021\n\tdatabytes" |
321 | | "\030\001 \002(\014\"6\n\rComboResponse\022%\n\tresponses\030\001 \003" |
322 | | "(\0132\022.test.EchoResponse\"\r\n\013HttpRequest\"\016\n" |
323 | | "\014HttpResponse\"&\n\010Message1\022\032\n\004stat\030\001 \002(\0162" |
324 | | "\014.test.State0\"&\n\010Message2\022\032\n\004stat\030\001 \002(\0162" |
325 | | "\014.test.State1\"G\n\020RecursiveMessage\022%\n\005chi" |
326 | | "ld\030\001 \001(\0132\026.test.RecursiveMessage\022\014\n\004data" |
327 | | "\030\002 \001(\t*>\n\006State0\022\020\n\014STATE0_NUM_0\020\000\022\020\n\014ST" |
328 | | "ATE0_NUM_1\020\001\022\020\n\014STATE0_NUM_2\020\002*,\n\006State1" |
329 | | "\022\020\n\014STATE1_NUM_0\020\000\022\020\n\014STATE1_NUM_1\020\0012\340\001\n" |
330 | | "\013EchoService\022-\n\004Echo\022\021.test.EchoRequest\032" |
331 | | "\022.test.EchoResponse\0224\n\tComboEcho\022\022.test." |
332 | | "ComboRequest\032\023.test.ComboResponse\0225\n\nByt" |
333 | | "esEcho1\022\022.test.BytesRequest\032\023.test.Bytes" |
334 | | "Response\0225\n\nBytesEcho2\022\022.test.BytesReque" |
335 | | "st\032\023.test.BytesResponse2}\n\017DownloadServi" |
336 | | "ce\0221\n\010Download\022\021.test.HttpRequest\032\022.test" |
337 | | ".HttpResponse\0227\n\016DownloadFailed\022\021.test.H" |
338 | | "ttpRequest\032\022.test.HttpResponse2w\n\rUpload" |
339 | | "Service\022/\n\006Upload\022\021.test.HttpRequest\032\022.t" |
340 | | "est.HttpResponse\0225\n\014UploadFailed\022\021.test." |
341 | | "HttpRequest\032\022.test.HttpResponse2w\n\021UserN" |
342 | | "amingService\0222\n\tListNames\022\021.test.HttpReq" |
343 | | "uest\032\022.test.HttpResponse\022.\n\005Touch\022\021.test" |
344 | | ".HttpRequest\032\022.test.HttpResponse2\215\002\n\026Dis" |
345 | | "coveryNamingService\022.\n\005Nodes\022\021.test.Http" |
346 | | "Request\032\022.test.HttpResponse\022/\n\006Fetchs\022\021." |
347 | | "test.HttpRequest\032\022.test.HttpResponse\0221\n\010" |
348 | | "Register\022\021.test.HttpRequest\032\022.test.HttpR" |
349 | | "esponse\022.\n\005Renew\022\021.test.HttpRequest\032\022.te" |
350 | | "st.HttpResponse\022/\n\006Cancel\022\021.test.HttpReq" |
351 | | "uest\032\022.test.HttpResponse2s\n\022NacosNamingS" |
352 | | "ervice\022.\n\005Login\022\021.test.HttpRequest\032\022.tes" |
353 | | "t.HttpResponse\022-\n\004List\022\021.test.HttpReques" |
354 | | "t\032\022.test.HttpResponse2m\n\013HttpService\022-\n\004" |
355 | | "Head\022\021.test.HttpRequest\032\022.test.HttpRespo" |
356 | | "nse\022/\n\006Expect\022\021.test.HttpRequest\032\022.test." |
357 | | "HttpResponseB\007\200\001\001\300\267,\001" |
358 | | ; |
359 | | static const ::_pbi::DescriptorTable* const descriptor_table_echo_2eproto_deps[1] = { |
360 | | &::descriptor_table_idl_5foptions_2eproto, |
361 | | }; |
362 | | static ::_pbi::once_flag descriptor_table_echo_2eproto_once; |
363 | | const ::_pbi::DescriptorTable descriptor_table_echo_2eproto = { |
364 | | false, false, 1821, descriptor_table_protodef_echo_2eproto, |
365 | | "echo.proto", |
366 | | &descriptor_table_echo_2eproto_once, descriptor_table_echo_2eproto_deps, 1, 11, |
367 | | schemas, file_default_instances, TableStruct_echo_2eproto::offsets, |
368 | | file_level_metadata_echo_2eproto, file_level_enum_descriptors_echo_2eproto, |
369 | | file_level_service_descriptors_echo_2eproto, |
370 | | }; |
371 | 0 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_echo_2eproto_getter() { |
372 | 0 | return &descriptor_table_echo_2eproto; |
373 | 0 | } |
374 | | |
375 | | // Force running AddDescriptors() at dynamic initialization time. |
376 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_echo_2eproto(&descriptor_table_echo_2eproto); |
377 | | namespace test { |
378 | 0 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State0_descriptor() { |
379 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
380 | 0 | return file_level_enum_descriptors_echo_2eproto[0]; |
381 | 0 | } |
382 | 0 | bool State0_IsValid(int value) { |
383 | 0 | switch (value) { |
384 | 0 | case 0: |
385 | 0 | case 1: |
386 | 0 | case 2: |
387 | 0 | return true; |
388 | 0 | default: |
389 | 0 | return false; |
390 | 0 | } |
391 | 0 | } |
392 | | |
393 | 0 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State1_descriptor() { |
394 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
395 | 0 | return file_level_enum_descriptors_echo_2eproto[1]; |
396 | 0 | } |
397 | 0 | bool State1_IsValid(int value) { |
398 | 0 | switch (value) { |
399 | 0 | case 0: |
400 | 0 | case 1: |
401 | 0 | return true; |
402 | 0 | default: |
403 | 0 | return false; |
404 | 0 | } |
405 | 0 | } |
406 | | |
407 | | |
408 | | // =================================================================== |
409 | | |
410 | | class EchoRequest::_Internal { |
411 | | public: |
412 | | using HasBits = decltype(std::declval<EchoRequest>()._impl_._has_bits_); |
413 | 0 | static void set_has_message(HasBits* has_bits) { |
414 | 0 | (*has_bits)[0] |= 1u; |
415 | 0 | } |
416 | 0 | static void set_has_code(HasBits* has_bits) { |
417 | 0 | (*has_bits)[0] |= 4u; |
418 | 0 | } |
419 | 0 | static void set_has_close_fd(HasBits* has_bits) { |
420 | 0 | (*has_bits)[0] |= 8u; |
421 | 0 | } |
422 | 0 | static void set_has_sleep_us(HasBits* has_bits) { |
423 | 0 | (*has_bits)[0] |= 16u; |
424 | 0 | } |
425 | 0 | static void set_has_server_fail(HasBits* has_bits) { |
426 | 0 | (*has_bits)[0] |= 32u; |
427 | 0 | } |
428 | 0 | static void set_has_http_header(HasBits* has_bits) { |
429 | 0 | (*has_bits)[0] |= 2u; |
430 | 0 | } |
431 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
432 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
433 | 0 | } |
434 | | }; |
435 | | |
436 | | EchoRequest::EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
437 | | bool is_message_owned) |
438 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
439 | 0 | SharedCtor(arena, is_message_owned); |
440 | | // @@protoc_insertion_point(arena_constructor:test.EchoRequest) |
441 | 0 | } |
442 | | EchoRequest::EchoRequest(const EchoRequest& from) |
443 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
444 | 0 | EchoRequest* const _this = this; (void)_this; |
445 | 0 | new (&_impl_) Impl_{ |
446 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
447 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
448 | 0 | , decltype(_impl_.message_){} |
449 | 0 | , decltype(_impl_.http_header_){} |
450 | 0 | , decltype(_impl_.code_){} |
451 | 0 | , decltype(_impl_.close_fd_){} |
452 | 0 | , decltype(_impl_.sleep_us_){} |
453 | 0 | , decltype(_impl_.server_fail_){}}; |
454 | |
|
455 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
456 | 0 | _impl_.message_.InitDefault(); |
457 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
458 | | _impl_.message_.Set("", GetArenaForAllocation()); |
459 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
460 | 0 | if (from._internal_has_message()) { |
461 | 0 | _this->_impl_.message_.Set(from._internal_message(), |
462 | 0 | _this->GetArenaForAllocation()); |
463 | 0 | } |
464 | 0 | _impl_.http_header_.InitDefault(); |
465 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
466 | | _impl_.http_header_.Set("", GetArenaForAllocation()); |
467 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
468 | 0 | if (from._internal_has_http_header()) { |
469 | 0 | _this->_impl_.http_header_.Set(from._internal_http_header(), |
470 | 0 | _this->GetArenaForAllocation()); |
471 | 0 | } |
472 | 0 | ::memcpy(&_impl_.code_, &from._impl_.code_, |
473 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&_impl_.server_fail_) - |
474 | 0 | reinterpret_cast<char*>(&_impl_.code_)) + sizeof(_impl_.server_fail_)); |
475 | | // @@protoc_insertion_point(copy_constructor:test.EchoRequest) |
476 | 0 | } |
477 | | |
478 | | inline void EchoRequest::SharedCtor( |
479 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
480 | 0 | (void)arena; |
481 | 0 | (void)is_message_owned; |
482 | 0 | new (&_impl_) Impl_{ |
483 | 0 | decltype(_impl_._has_bits_){} |
484 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
485 | 0 | , decltype(_impl_.message_){} |
486 | 0 | , decltype(_impl_.http_header_){} |
487 | 0 | , decltype(_impl_.code_){0} |
488 | 0 | , decltype(_impl_.close_fd_){false} |
489 | 0 | , decltype(_impl_.sleep_us_){0} |
490 | 0 | , decltype(_impl_.server_fail_){0} |
491 | 0 | }; |
492 | 0 | _impl_.message_.InitDefault(); |
493 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
494 | | _impl_.message_.Set("", GetArenaForAllocation()); |
495 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
496 | 0 | _impl_.http_header_.InitDefault(); |
497 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
498 | | _impl_.http_header_.Set("", GetArenaForAllocation()); |
499 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
500 | 0 | } |
501 | | |
502 | 0 | EchoRequest::~EchoRequest() { |
503 | | // @@protoc_insertion_point(destructor:test.EchoRequest) |
504 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
505 | 0 | (void)arena; |
506 | 0 | return; |
507 | 0 | } |
508 | 0 | SharedDtor(); |
509 | 0 | } |
510 | | |
511 | 0 | inline void EchoRequest::SharedDtor() { |
512 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
513 | 0 | _impl_.message_.Destroy(); |
514 | 0 | _impl_.http_header_.Destroy(); |
515 | 0 | } |
516 | | |
517 | 0 | void EchoRequest::SetCachedSize(int size) const { |
518 | 0 | _impl_._cached_size_.Set(size); |
519 | 0 | } |
520 | | |
521 | 0 | void EchoRequest::Clear() { |
522 | | // @@protoc_insertion_point(message_clear_start:test.EchoRequest) |
523 | 0 | uint32_t cached_has_bits = 0; |
524 | | // Prevent compiler warnings about cached_has_bits being unused |
525 | 0 | (void) cached_has_bits; |
526 | |
|
527 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
528 | 0 | if (cached_has_bits & 0x00000003u) { |
529 | 0 | if (cached_has_bits & 0x00000001u) { |
530 | 0 | _impl_.message_.ClearNonDefaultToEmpty(); |
531 | 0 | } |
532 | 0 | if (cached_has_bits & 0x00000002u) { |
533 | 0 | _impl_.http_header_.ClearNonDefaultToEmpty(); |
534 | 0 | } |
535 | 0 | } |
536 | 0 | if (cached_has_bits & 0x0000003cu) { |
537 | 0 | ::memset(&_impl_.code_, 0, static_cast<size_t>( |
538 | 0 | reinterpret_cast<char*>(&_impl_.server_fail_) - |
539 | 0 | reinterpret_cast<char*>(&_impl_.code_)) + sizeof(_impl_.server_fail_)); |
540 | 0 | } |
541 | 0 | _impl_._has_bits_.Clear(); |
542 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
543 | 0 | } |
544 | | |
545 | 0 | const char* EchoRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
546 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
547 | 0 | _Internal::HasBits has_bits{}; |
548 | 0 | while (!ctx->Done(&ptr)) { |
549 | 0 | uint32_t tag; |
550 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
551 | 0 | switch (tag >> 3) { |
552 | | // required string message = 1; |
553 | 0 | case 1: |
554 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
555 | 0 | auto str = _internal_mutable_message(); |
556 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
557 | 0 | CHK_(ptr); |
558 | 0 | #ifndef NDEBUG |
559 | 0 | ::_pbi::VerifyUTF8(str, "test.EchoRequest.message"); |
560 | 0 | #endif // !NDEBUG |
561 | 0 | } else |
562 | 0 | goto handle_unusual; |
563 | 0 | continue; |
564 | | // optional int32 code = 2; |
565 | 0 | case 2: |
566 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
567 | 0 | _Internal::set_has_code(&has_bits); |
568 | 0 | _impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
569 | 0 | CHK_(ptr); |
570 | 0 | } else |
571 | 0 | goto handle_unusual; |
572 | 0 | continue; |
573 | | // optional bool close_fd = 3; |
574 | 0 | case 3: |
575 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
576 | 0 | _Internal::set_has_close_fd(&has_bits); |
577 | 0 | _impl_.close_fd_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
578 | 0 | CHK_(ptr); |
579 | 0 | } else |
580 | 0 | goto handle_unusual; |
581 | 0 | continue; |
582 | | // optional int32 sleep_us = 4; |
583 | 0 | case 4: |
584 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { |
585 | 0 | _Internal::set_has_sleep_us(&has_bits); |
586 | 0 | _impl_.sleep_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
587 | 0 | CHK_(ptr); |
588 | 0 | } else |
589 | 0 | goto handle_unusual; |
590 | 0 | continue; |
591 | | // optional int32 server_fail = 5; |
592 | 0 | case 5: |
593 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { |
594 | 0 | _Internal::set_has_server_fail(&has_bits); |
595 | 0 | _impl_.server_fail_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
596 | 0 | CHK_(ptr); |
597 | 0 | } else |
598 | 0 | goto handle_unusual; |
599 | 0 | continue; |
600 | | // optional string http_header = 6; |
601 | 0 | case 6: |
602 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { |
603 | 0 | auto str = _internal_mutable_http_header(); |
604 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
605 | 0 | CHK_(ptr); |
606 | 0 | #ifndef NDEBUG |
607 | 0 | ::_pbi::VerifyUTF8(str, "test.EchoRequest.http_header"); |
608 | 0 | #endif // !NDEBUG |
609 | 0 | } else |
610 | 0 | goto handle_unusual; |
611 | 0 | continue; |
612 | 0 | default: |
613 | 0 | goto handle_unusual; |
614 | 0 | } // switch |
615 | 0 | handle_unusual: |
616 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
617 | 0 | CHK_(ptr); |
618 | 0 | ctx->SetLastTag(tag); |
619 | 0 | goto message_done; |
620 | 0 | } |
621 | 0 | ptr = UnknownFieldParse( |
622 | 0 | tag, |
623 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
624 | 0 | ptr, ctx); |
625 | 0 | CHK_(ptr != nullptr); |
626 | 0 | } // while |
627 | 0 | message_done: |
628 | 0 | _impl_._has_bits_.Or(has_bits); |
629 | 0 | return ptr; |
630 | 0 | failure: |
631 | 0 | ptr = nullptr; |
632 | 0 | goto message_done; |
633 | 0 | #undef CHK_ |
634 | 0 | } |
635 | | |
636 | | uint8_t* EchoRequest::_InternalSerialize( |
637 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
638 | | // @@protoc_insertion_point(serialize_to_array_start:test.EchoRequest) |
639 | 0 | uint32_t cached_has_bits = 0; |
640 | 0 | (void) cached_has_bits; |
641 | |
|
642 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
643 | | // required string message = 1; |
644 | 0 | if (cached_has_bits & 0x00000001u) { |
645 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
646 | 0 | this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
647 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
648 | 0 | "test.EchoRequest.message"); |
649 | 0 | target = stream->WriteStringMaybeAliased( |
650 | 0 | 1, this->_internal_message(), target); |
651 | 0 | } |
652 | | |
653 | | // optional int32 code = 2; |
654 | 0 | if (cached_has_bits & 0x00000004u) { |
655 | 0 | target = stream->EnsureSpace(target); |
656 | 0 | target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_code(), target); |
657 | 0 | } |
658 | | |
659 | | // optional bool close_fd = 3; |
660 | 0 | if (cached_has_bits & 0x00000008u) { |
661 | 0 | target = stream->EnsureSpace(target); |
662 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_close_fd(), target); |
663 | 0 | } |
664 | | |
665 | | // optional int32 sleep_us = 4; |
666 | 0 | if (cached_has_bits & 0x00000010u) { |
667 | 0 | target = stream->EnsureSpace(target); |
668 | 0 | target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_sleep_us(), target); |
669 | 0 | } |
670 | | |
671 | | // optional int32 server_fail = 5; |
672 | 0 | if (cached_has_bits & 0x00000020u) { |
673 | 0 | target = stream->EnsureSpace(target); |
674 | 0 | target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_server_fail(), target); |
675 | 0 | } |
676 | | |
677 | | // optional string http_header = 6; |
678 | 0 | if (cached_has_bits & 0x00000002u) { |
679 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
680 | 0 | this->_internal_http_header().data(), static_cast<int>(this->_internal_http_header().length()), |
681 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
682 | 0 | "test.EchoRequest.http_header"); |
683 | 0 | target = stream->WriteStringMaybeAliased( |
684 | 0 | 6, this->_internal_http_header(), target); |
685 | 0 | } |
686 | |
|
687 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
688 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
689 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
690 | 0 | } |
691 | | // @@protoc_insertion_point(serialize_to_array_end:test.EchoRequest) |
692 | 0 | return target; |
693 | 0 | } |
694 | | |
695 | 0 | size_t EchoRequest::ByteSizeLong() const { |
696 | | // @@protoc_insertion_point(message_byte_size_start:test.EchoRequest) |
697 | 0 | size_t total_size = 0; |
698 | | |
699 | | // required string message = 1; |
700 | 0 | if (_internal_has_message()) { |
701 | 0 | total_size += 1 + |
702 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
703 | 0 | this->_internal_message()); |
704 | 0 | } |
705 | 0 | uint32_t cached_has_bits = 0; |
706 | | // Prevent compiler warnings about cached_has_bits being unused |
707 | 0 | (void) cached_has_bits; |
708 | |
|
709 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
710 | 0 | if (cached_has_bits & 0x0000003eu) { |
711 | | // optional string http_header = 6; |
712 | 0 | if (cached_has_bits & 0x00000002u) { |
713 | 0 | total_size += 1 + |
714 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
715 | 0 | this->_internal_http_header()); |
716 | 0 | } |
717 | | |
718 | | // optional int32 code = 2; |
719 | 0 | if (cached_has_bits & 0x00000004u) { |
720 | 0 | total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_code()); |
721 | 0 | } |
722 | | |
723 | | // optional bool close_fd = 3; |
724 | 0 | if (cached_has_bits & 0x00000008u) { |
725 | 0 | total_size += 1 + 1; |
726 | 0 | } |
727 | | |
728 | | // optional int32 sleep_us = 4; |
729 | 0 | if (cached_has_bits & 0x00000010u) { |
730 | 0 | total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_sleep_us()); |
731 | 0 | } |
732 | | |
733 | | // optional int32 server_fail = 5; |
734 | 0 | if (cached_has_bits & 0x00000020u) { |
735 | 0 | total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_server_fail()); |
736 | 0 | } |
737 | |
|
738 | 0 | } |
739 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
740 | 0 | } |
741 | | |
742 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoRequest::_class_data_ = { |
743 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
744 | | EchoRequest::MergeImpl |
745 | | }; |
746 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoRequest::GetClassData() const { return &_class_data_; } |
747 | | |
748 | | |
749 | 0 | void EchoRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
750 | 0 | auto* const _this = static_cast<EchoRequest*>(&to_msg); |
751 | 0 | auto& from = static_cast<const EchoRequest&>(from_msg); |
752 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.EchoRequest) |
753 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
754 | 0 | uint32_t cached_has_bits = 0; |
755 | 0 | (void) cached_has_bits; |
756 | |
|
757 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
758 | 0 | if (cached_has_bits & 0x0000003fu) { |
759 | 0 | if (cached_has_bits & 0x00000001u) { |
760 | 0 | _this->_internal_set_message(from._internal_message()); |
761 | 0 | } |
762 | 0 | if (cached_has_bits & 0x00000002u) { |
763 | 0 | _this->_internal_set_http_header(from._internal_http_header()); |
764 | 0 | } |
765 | 0 | if (cached_has_bits & 0x00000004u) { |
766 | 0 | _this->_impl_.code_ = from._impl_.code_; |
767 | 0 | } |
768 | 0 | if (cached_has_bits & 0x00000008u) { |
769 | 0 | _this->_impl_.close_fd_ = from._impl_.close_fd_; |
770 | 0 | } |
771 | 0 | if (cached_has_bits & 0x00000010u) { |
772 | 0 | _this->_impl_.sleep_us_ = from._impl_.sleep_us_; |
773 | 0 | } |
774 | 0 | if (cached_has_bits & 0x00000020u) { |
775 | 0 | _this->_impl_.server_fail_ = from._impl_.server_fail_; |
776 | 0 | } |
777 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
778 | 0 | } |
779 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
780 | 0 | } |
781 | | |
782 | 0 | void EchoRequest::CopyFrom(const EchoRequest& from) { |
783 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.EchoRequest) |
784 | 0 | if (&from == this) return; |
785 | 0 | Clear(); |
786 | 0 | MergeFrom(from); |
787 | 0 | } |
788 | | |
789 | 0 | bool EchoRequest::IsInitialized() const { |
790 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
791 | 0 | return true; |
792 | 0 | } |
793 | | |
794 | 0 | void EchoRequest::InternalSwap(EchoRequest* other) { |
795 | 0 | using std::swap; |
796 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
797 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
798 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
799 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
800 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
801 | 0 | &_impl_.message_, lhs_arena, |
802 | 0 | &other->_impl_.message_, rhs_arena |
803 | 0 | ); |
804 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
805 | 0 | &_impl_.http_header_, lhs_arena, |
806 | 0 | &other->_impl_.http_header_, rhs_arena |
807 | 0 | ); |
808 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
809 | 0 | PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.server_fail_) |
810 | 0 | + sizeof(EchoRequest::_impl_.server_fail_) |
811 | 0 | - PROTOBUF_FIELD_OFFSET(EchoRequest, _impl_.code_)>( |
812 | 0 | reinterpret_cast<char*>(&_impl_.code_), |
813 | 0 | reinterpret_cast<char*>(&other->_impl_.code_)); |
814 | 0 | } |
815 | | |
816 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata EchoRequest::GetMetadata() const { |
817 | 0 | return ::_pbi::AssignDescriptors( |
818 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
819 | 0 | file_level_metadata_echo_2eproto[0]); |
820 | 0 | } |
821 | | |
822 | | // =================================================================== |
823 | | |
824 | | class EchoResponse::_Internal { |
825 | | public: |
826 | | using HasBits = decltype(std::declval<EchoResponse>()._impl_._has_bits_); |
827 | 0 | static void set_has_message(HasBits* has_bits) { |
828 | 0 | (*has_bits)[0] |= 1u; |
829 | 0 | } |
830 | 0 | static void set_has_receiving_socket_id(HasBits* has_bits) { |
831 | 0 | (*has_bits)[0] |= 2u; |
832 | 0 | } |
833 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
834 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
835 | 0 | } |
836 | | }; |
837 | | |
838 | | EchoResponse::EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
839 | | bool is_message_owned) |
840 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
841 | 0 | SharedCtor(arena, is_message_owned); |
842 | | // @@protoc_insertion_point(arena_constructor:test.EchoResponse) |
843 | 0 | } |
844 | | EchoResponse::EchoResponse(const EchoResponse& from) |
845 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
846 | 0 | EchoResponse* const _this = this; (void)_this; |
847 | 0 | new (&_impl_) Impl_{ |
848 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
849 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
850 | 0 | , decltype(_impl_.code_list_){from._impl_.code_list_} |
851 | 0 | , decltype(_impl_.message_){} |
852 | 0 | , decltype(_impl_.receiving_socket_id_){}}; |
853 | |
|
854 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
855 | 0 | _impl_.message_.InitDefault(); |
856 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
857 | | _impl_.message_.Set("", GetArenaForAllocation()); |
858 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
859 | 0 | if (from._internal_has_message()) { |
860 | 0 | _this->_impl_.message_.Set(from._internal_message(), |
861 | 0 | _this->GetArenaForAllocation()); |
862 | 0 | } |
863 | 0 | _this->_impl_.receiving_socket_id_ = from._impl_.receiving_socket_id_; |
864 | | // @@protoc_insertion_point(copy_constructor:test.EchoResponse) |
865 | 0 | } |
866 | | |
867 | | inline void EchoResponse::SharedCtor( |
868 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
869 | 0 | (void)arena; |
870 | 0 | (void)is_message_owned; |
871 | 0 | new (&_impl_) Impl_{ |
872 | 0 | decltype(_impl_._has_bits_){} |
873 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
874 | 0 | , decltype(_impl_.code_list_){arena} |
875 | 0 | , decltype(_impl_.message_){} |
876 | 0 | , decltype(_impl_.receiving_socket_id_){uint64_t{0u}} |
877 | 0 | }; |
878 | 0 | _impl_.message_.InitDefault(); |
879 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
880 | | _impl_.message_.Set("", GetArenaForAllocation()); |
881 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
882 | 0 | } |
883 | | |
884 | 0 | EchoResponse::~EchoResponse() { |
885 | | // @@protoc_insertion_point(destructor:test.EchoResponse) |
886 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
887 | 0 | (void)arena; |
888 | 0 | return; |
889 | 0 | } |
890 | 0 | SharedDtor(); |
891 | 0 | } |
892 | | |
893 | 0 | inline void EchoResponse::SharedDtor() { |
894 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
895 | 0 | _impl_.code_list_.~RepeatedField(); |
896 | 0 | _impl_.message_.Destroy(); |
897 | 0 | } |
898 | | |
899 | 0 | void EchoResponse::SetCachedSize(int size) const { |
900 | 0 | _impl_._cached_size_.Set(size); |
901 | 0 | } |
902 | | |
903 | 0 | void EchoResponse::Clear() { |
904 | | // @@protoc_insertion_point(message_clear_start:test.EchoResponse) |
905 | 0 | uint32_t cached_has_bits = 0; |
906 | | // Prevent compiler warnings about cached_has_bits being unused |
907 | 0 | (void) cached_has_bits; |
908 | |
|
909 | 0 | _impl_.code_list_.Clear(); |
910 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
911 | 0 | if (cached_has_bits & 0x00000001u) { |
912 | 0 | _impl_.message_.ClearNonDefaultToEmpty(); |
913 | 0 | } |
914 | 0 | _impl_.receiving_socket_id_ = uint64_t{0u}; |
915 | 0 | _impl_._has_bits_.Clear(); |
916 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
917 | 0 | } |
918 | | |
919 | 0 | const char* EchoResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
920 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
921 | 0 | _Internal::HasBits has_bits{}; |
922 | 0 | while (!ctx->Done(&ptr)) { |
923 | 0 | uint32_t tag; |
924 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
925 | 0 | switch (tag >> 3) { |
926 | | // required string message = 1; |
927 | 0 | case 1: |
928 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
929 | 0 | auto str = _internal_mutable_message(); |
930 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
931 | 0 | CHK_(ptr); |
932 | 0 | #ifndef NDEBUG |
933 | 0 | ::_pbi::VerifyUTF8(str, "test.EchoResponse.message"); |
934 | 0 | #endif // !NDEBUG |
935 | 0 | } else |
936 | 0 | goto handle_unusual; |
937 | 0 | continue; |
938 | | // repeated int32 code_list = 2; |
939 | 0 | case 2: |
940 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
941 | 0 | ptr -= 1; |
942 | 0 | do { |
943 | 0 | ptr += 1; |
944 | 0 | _internal_add_code_list(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
945 | 0 | CHK_(ptr); |
946 | 0 | if (!ctx->DataAvailable(ptr)) break; |
947 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<16>(ptr)); |
948 | 0 | } else if (static_cast<uint8_t>(tag) == 18) { |
949 | 0 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_code_list(), ptr, ctx); |
950 | 0 | CHK_(ptr); |
951 | 0 | } else |
952 | 0 | goto handle_unusual; |
953 | 0 | continue; |
954 | | // optional uint64 receiving_socket_id = 3; |
955 | 0 | case 3: |
956 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
957 | 0 | _Internal::set_has_receiving_socket_id(&has_bits); |
958 | 0 | _impl_.receiving_socket_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
959 | 0 | CHK_(ptr); |
960 | 0 | } else |
961 | 0 | goto handle_unusual; |
962 | 0 | continue; |
963 | 0 | default: |
964 | 0 | goto handle_unusual; |
965 | 0 | } // switch |
966 | 0 | handle_unusual: |
967 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
968 | 0 | CHK_(ptr); |
969 | 0 | ctx->SetLastTag(tag); |
970 | 0 | goto message_done; |
971 | 0 | } |
972 | 0 | ptr = UnknownFieldParse( |
973 | 0 | tag, |
974 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
975 | 0 | ptr, ctx); |
976 | 0 | CHK_(ptr != nullptr); |
977 | 0 | } // while |
978 | 0 | message_done: |
979 | 0 | _impl_._has_bits_.Or(has_bits); |
980 | 0 | return ptr; |
981 | 0 | failure: |
982 | 0 | ptr = nullptr; |
983 | 0 | goto message_done; |
984 | 0 | #undef CHK_ |
985 | 0 | } |
986 | | |
987 | | uint8_t* EchoResponse::_InternalSerialize( |
988 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
989 | | // @@protoc_insertion_point(serialize_to_array_start:test.EchoResponse) |
990 | 0 | uint32_t cached_has_bits = 0; |
991 | 0 | (void) cached_has_bits; |
992 | |
|
993 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
994 | | // required string message = 1; |
995 | 0 | if (cached_has_bits & 0x00000001u) { |
996 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
997 | 0 | this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
998 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
999 | 0 | "test.EchoResponse.message"); |
1000 | 0 | target = stream->WriteStringMaybeAliased( |
1001 | 0 | 1, this->_internal_message(), target); |
1002 | 0 | } |
1003 | | |
1004 | | // repeated int32 code_list = 2; |
1005 | 0 | for (int i = 0, n = this->_internal_code_list_size(); i < n; i++) { |
1006 | 0 | target = stream->EnsureSpace(target); |
1007 | 0 | target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_code_list(i), target); |
1008 | 0 | } |
1009 | | |
1010 | | // optional uint64 receiving_socket_id = 3; |
1011 | 0 | if (cached_has_bits & 0x00000002u) { |
1012 | 0 | target = stream->EnsureSpace(target); |
1013 | 0 | target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_receiving_socket_id(), target); |
1014 | 0 | } |
1015 | |
|
1016 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1017 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1018 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1019 | 0 | } |
1020 | | // @@protoc_insertion_point(serialize_to_array_end:test.EchoResponse) |
1021 | 0 | return target; |
1022 | 0 | } |
1023 | | |
1024 | 0 | size_t EchoResponse::ByteSizeLong() const { |
1025 | | // @@protoc_insertion_point(message_byte_size_start:test.EchoResponse) |
1026 | 0 | size_t total_size = 0; |
1027 | | |
1028 | | // required string message = 1; |
1029 | 0 | if (_internal_has_message()) { |
1030 | 0 | total_size += 1 + |
1031 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1032 | 0 | this->_internal_message()); |
1033 | 0 | } |
1034 | 0 | uint32_t cached_has_bits = 0; |
1035 | | // Prevent compiler warnings about cached_has_bits being unused |
1036 | 0 | (void) cached_has_bits; |
1037 | | |
1038 | | // repeated int32 code_list = 2; |
1039 | 0 | { |
1040 | 0 | size_t data_size = ::_pbi::WireFormatLite:: |
1041 | 0 | Int32Size(this->_impl_.code_list_); |
1042 | 0 | total_size += 1 * |
1043 | 0 | ::_pbi::FromIntSize(this->_internal_code_list_size()); |
1044 | 0 | total_size += data_size; |
1045 | 0 | } |
1046 | | |
1047 | | // optional uint64 receiving_socket_id = 3; |
1048 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1049 | 0 | if (cached_has_bits & 0x00000002u) { |
1050 | 0 | total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_receiving_socket_id()); |
1051 | 0 | } |
1052 | |
|
1053 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1054 | 0 | } |
1055 | | |
1056 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EchoResponse::_class_data_ = { |
1057 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1058 | | EchoResponse::MergeImpl |
1059 | | }; |
1060 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EchoResponse::GetClassData() const { return &_class_data_; } |
1061 | | |
1062 | | |
1063 | 0 | void EchoResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1064 | 0 | auto* const _this = static_cast<EchoResponse*>(&to_msg); |
1065 | 0 | auto& from = static_cast<const EchoResponse&>(from_msg); |
1066 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.EchoResponse) |
1067 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
1068 | 0 | uint32_t cached_has_bits = 0; |
1069 | 0 | (void) cached_has_bits; |
1070 | |
|
1071 | 0 | _this->_impl_.code_list_.MergeFrom(from._impl_.code_list_); |
1072 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
1073 | 0 | if (cached_has_bits & 0x00000003u) { |
1074 | 0 | if (cached_has_bits & 0x00000001u) { |
1075 | 0 | _this->_internal_set_message(from._internal_message()); |
1076 | 0 | } |
1077 | 0 | if (cached_has_bits & 0x00000002u) { |
1078 | 0 | _this->_impl_.receiving_socket_id_ = from._impl_.receiving_socket_id_; |
1079 | 0 | } |
1080 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
1081 | 0 | } |
1082 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1083 | 0 | } |
1084 | | |
1085 | 0 | void EchoResponse::CopyFrom(const EchoResponse& from) { |
1086 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.EchoResponse) |
1087 | 0 | if (&from == this) return; |
1088 | 0 | Clear(); |
1089 | 0 | MergeFrom(from); |
1090 | 0 | } |
1091 | | |
1092 | 0 | bool EchoResponse::IsInitialized() const { |
1093 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
1094 | 0 | return true; |
1095 | 0 | } |
1096 | | |
1097 | 0 | void EchoResponse::InternalSwap(EchoResponse* other) { |
1098 | 0 | using std::swap; |
1099 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
1100 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
1101 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1102 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1103 | 0 | _impl_.code_list_.InternalSwap(&other->_impl_.code_list_); |
1104 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
1105 | 0 | &_impl_.message_, lhs_arena, |
1106 | 0 | &other->_impl_.message_, rhs_arena |
1107 | 0 | ); |
1108 | 0 | swap(_impl_.receiving_socket_id_, other->_impl_.receiving_socket_id_); |
1109 | 0 | } |
1110 | | |
1111 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata EchoResponse::GetMetadata() const { |
1112 | 0 | return ::_pbi::AssignDescriptors( |
1113 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1114 | 0 | file_level_metadata_echo_2eproto[1]); |
1115 | 0 | } |
1116 | | |
1117 | | // =================================================================== |
1118 | | |
1119 | | class ComboRequest::_Internal { |
1120 | | public: |
1121 | | }; |
1122 | | |
1123 | | ComboRequest::ComboRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1124 | | bool is_message_owned) |
1125 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1126 | 0 | SharedCtor(arena, is_message_owned); |
1127 | | // @@protoc_insertion_point(arena_constructor:test.ComboRequest) |
1128 | 0 | } |
1129 | | ComboRequest::ComboRequest(const ComboRequest& from) |
1130 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1131 | 0 | ComboRequest* const _this = this; (void)_this; |
1132 | 0 | new (&_impl_) Impl_{ |
1133 | 0 | decltype(_impl_.requests_){from._impl_.requests_} |
1134 | 0 | , /*decltype(_impl_._cached_size_)*/{}}; |
1135 | |
|
1136 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1137 | | // @@protoc_insertion_point(copy_constructor:test.ComboRequest) |
1138 | 0 | } |
1139 | | |
1140 | | inline void ComboRequest::SharedCtor( |
1141 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
1142 | 0 | (void)arena; |
1143 | 0 | (void)is_message_owned; |
1144 | 0 | new (&_impl_) Impl_{ |
1145 | 0 | decltype(_impl_.requests_){arena} |
1146 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1147 | 0 | }; |
1148 | 0 | } |
1149 | | |
1150 | 0 | ComboRequest::~ComboRequest() { |
1151 | | // @@protoc_insertion_point(destructor:test.ComboRequest) |
1152 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1153 | 0 | (void)arena; |
1154 | 0 | return; |
1155 | 0 | } |
1156 | 0 | SharedDtor(); |
1157 | 0 | } |
1158 | | |
1159 | 0 | inline void ComboRequest::SharedDtor() { |
1160 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1161 | 0 | _impl_.requests_.~RepeatedPtrField(); |
1162 | 0 | } |
1163 | | |
1164 | 0 | void ComboRequest::SetCachedSize(int size) const { |
1165 | 0 | _impl_._cached_size_.Set(size); |
1166 | 0 | } |
1167 | | |
1168 | 0 | void ComboRequest::Clear() { |
1169 | | // @@protoc_insertion_point(message_clear_start:test.ComboRequest) |
1170 | 0 | uint32_t cached_has_bits = 0; |
1171 | | // Prevent compiler warnings about cached_has_bits being unused |
1172 | 0 | (void) cached_has_bits; |
1173 | |
|
1174 | 0 | _impl_.requests_.Clear(); |
1175 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1176 | 0 | } |
1177 | | |
1178 | 0 | const char* ComboRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1179 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1180 | 0 | while (!ctx->Done(&ptr)) { |
1181 | 0 | uint32_t tag; |
1182 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1183 | 0 | switch (tag >> 3) { |
1184 | | // repeated .test.EchoRequest requests = 1; |
1185 | 0 | case 1: |
1186 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1187 | 0 | ptr -= 1; |
1188 | 0 | do { |
1189 | 0 | ptr += 1; |
1190 | 0 | ptr = ctx->ParseMessage(_internal_add_requests(), ptr); |
1191 | 0 | CHK_(ptr); |
1192 | 0 | if (!ctx->DataAvailable(ptr)) break; |
1193 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
1194 | 0 | } else |
1195 | 0 | goto handle_unusual; |
1196 | 0 | continue; |
1197 | 0 | default: |
1198 | 0 | goto handle_unusual; |
1199 | 0 | } // switch |
1200 | 0 | handle_unusual: |
1201 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1202 | 0 | CHK_(ptr); |
1203 | 0 | ctx->SetLastTag(tag); |
1204 | 0 | goto message_done; |
1205 | 0 | } |
1206 | 0 | ptr = UnknownFieldParse( |
1207 | 0 | tag, |
1208 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1209 | 0 | ptr, ctx); |
1210 | 0 | CHK_(ptr != nullptr); |
1211 | 0 | } // while |
1212 | 0 | message_done: |
1213 | 0 | return ptr; |
1214 | 0 | failure: |
1215 | 0 | ptr = nullptr; |
1216 | 0 | goto message_done; |
1217 | 0 | #undef CHK_ |
1218 | 0 | } |
1219 | | |
1220 | | uint8_t* ComboRequest::_InternalSerialize( |
1221 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1222 | | // @@protoc_insertion_point(serialize_to_array_start:test.ComboRequest) |
1223 | 0 | uint32_t cached_has_bits = 0; |
1224 | 0 | (void) cached_has_bits; |
1225 | | |
1226 | | // repeated .test.EchoRequest requests = 1; |
1227 | 0 | for (unsigned i = 0, |
1228 | 0 | n = static_cast<unsigned>(this->_internal_requests_size()); i < n; i++) { |
1229 | 0 | const auto& repfield = this->_internal_requests(i); |
1230 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1231 | 0 | InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); |
1232 | 0 | } |
1233 | |
|
1234 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1235 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1236 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1237 | 0 | } |
1238 | | // @@protoc_insertion_point(serialize_to_array_end:test.ComboRequest) |
1239 | 0 | return target; |
1240 | 0 | } |
1241 | | |
1242 | 0 | size_t ComboRequest::ByteSizeLong() const { |
1243 | | // @@protoc_insertion_point(message_byte_size_start:test.ComboRequest) |
1244 | 0 | size_t total_size = 0; |
1245 | |
|
1246 | 0 | uint32_t cached_has_bits = 0; |
1247 | | // Prevent compiler warnings about cached_has_bits being unused |
1248 | 0 | (void) cached_has_bits; |
1249 | | |
1250 | | // repeated .test.EchoRequest requests = 1; |
1251 | 0 | total_size += 1UL * this->_internal_requests_size(); |
1252 | 0 | for (const auto& msg : this->_impl_.requests_) { |
1253 | 0 | total_size += |
1254 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
1255 | 0 | } |
1256 | |
|
1257 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1258 | 0 | } |
1259 | | |
1260 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComboRequest::_class_data_ = { |
1261 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1262 | | ComboRequest::MergeImpl |
1263 | | }; |
1264 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComboRequest::GetClassData() const { return &_class_data_; } |
1265 | | |
1266 | | |
1267 | 0 | void ComboRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1268 | 0 | auto* const _this = static_cast<ComboRequest*>(&to_msg); |
1269 | 0 | auto& from = static_cast<const ComboRequest&>(from_msg); |
1270 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.ComboRequest) |
1271 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
1272 | 0 | uint32_t cached_has_bits = 0; |
1273 | 0 | (void) cached_has_bits; |
1274 | |
|
1275 | 0 | _this->_impl_.requests_.MergeFrom(from._impl_.requests_); |
1276 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1277 | 0 | } |
1278 | | |
1279 | 0 | void ComboRequest::CopyFrom(const ComboRequest& from) { |
1280 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.ComboRequest) |
1281 | 0 | if (&from == this) return; |
1282 | 0 | Clear(); |
1283 | 0 | MergeFrom(from); |
1284 | 0 | } |
1285 | | |
1286 | 0 | bool ComboRequest::IsInitialized() const { |
1287 | 0 | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.requests_)) |
1288 | 0 | return false; |
1289 | 0 | return true; |
1290 | 0 | } |
1291 | | |
1292 | 0 | void ComboRequest::InternalSwap(ComboRequest* other) { |
1293 | 0 | using std::swap; |
1294 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1295 | 0 | _impl_.requests_.InternalSwap(&other->_impl_.requests_); |
1296 | 0 | } |
1297 | | |
1298 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata ComboRequest::GetMetadata() const { |
1299 | 0 | return ::_pbi::AssignDescriptors( |
1300 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1301 | 0 | file_level_metadata_echo_2eproto[2]); |
1302 | 0 | } |
1303 | | |
1304 | | // =================================================================== |
1305 | | |
1306 | | class BytesRequest::_Internal { |
1307 | | public: |
1308 | | using HasBits = decltype(std::declval<BytesRequest>()._impl_._has_bits_); |
1309 | 0 | static void set_has_databytes(HasBits* has_bits) { |
1310 | 0 | (*has_bits)[0] |= 1u; |
1311 | 0 | } |
1312 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1313 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1314 | 0 | } |
1315 | | }; |
1316 | | |
1317 | | BytesRequest::BytesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1318 | | bool is_message_owned) |
1319 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1320 | 0 | SharedCtor(arena, is_message_owned); |
1321 | | // @@protoc_insertion_point(arena_constructor:test.BytesRequest) |
1322 | 0 | } |
1323 | | BytesRequest::BytesRequest(const BytesRequest& from) |
1324 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1325 | 0 | BytesRequest* const _this = this; (void)_this; |
1326 | 0 | new (&_impl_) Impl_{ |
1327 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
1328 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1329 | 0 | , decltype(_impl_.databytes_){}}; |
1330 | |
|
1331 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1332 | 0 | _impl_.databytes_.InitDefault(); |
1333 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1334 | | _impl_.databytes_.Set("", GetArenaForAllocation()); |
1335 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1336 | 0 | if (from._internal_has_databytes()) { |
1337 | 0 | _this->_impl_.databytes_.Set(from._internal_databytes(), |
1338 | 0 | _this->GetArenaForAllocation()); |
1339 | 0 | } |
1340 | | // @@protoc_insertion_point(copy_constructor:test.BytesRequest) |
1341 | 0 | } |
1342 | | |
1343 | | inline void BytesRequest::SharedCtor( |
1344 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
1345 | 0 | (void)arena; |
1346 | 0 | (void)is_message_owned; |
1347 | 0 | new (&_impl_) Impl_{ |
1348 | 0 | decltype(_impl_._has_bits_){} |
1349 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1350 | 0 | , decltype(_impl_.databytes_){} |
1351 | 0 | }; |
1352 | 0 | _impl_.databytes_.InitDefault(); |
1353 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1354 | | _impl_.databytes_.Set("", GetArenaForAllocation()); |
1355 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1356 | 0 | } |
1357 | | |
1358 | 0 | BytesRequest::~BytesRequest() { |
1359 | | // @@protoc_insertion_point(destructor:test.BytesRequest) |
1360 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1361 | 0 | (void)arena; |
1362 | 0 | return; |
1363 | 0 | } |
1364 | 0 | SharedDtor(); |
1365 | 0 | } |
1366 | | |
1367 | 0 | inline void BytesRequest::SharedDtor() { |
1368 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1369 | 0 | _impl_.databytes_.Destroy(); |
1370 | 0 | } |
1371 | | |
1372 | 0 | void BytesRequest::SetCachedSize(int size) const { |
1373 | 0 | _impl_._cached_size_.Set(size); |
1374 | 0 | } |
1375 | | |
1376 | 0 | void BytesRequest::Clear() { |
1377 | | // @@protoc_insertion_point(message_clear_start:test.BytesRequest) |
1378 | 0 | uint32_t cached_has_bits = 0; |
1379 | | // Prevent compiler warnings about cached_has_bits being unused |
1380 | 0 | (void) cached_has_bits; |
1381 | |
|
1382 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1383 | 0 | if (cached_has_bits & 0x00000001u) { |
1384 | 0 | _impl_.databytes_.ClearNonDefaultToEmpty(); |
1385 | 0 | } |
1386 | 0 | _impl_._has_bits_.Clear(); |
1387 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1388 | 0 | } |
1389 | | |
1390 | 0 | const char* BytesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1391 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1392 | 0 | _Internal::HasBits has_bits{}; |
1393 | 0 | while (!ctx->Done(&ptr)) { |
1394 | 0 | uint32_t tag; |
1395 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1396 | 0 | switch (tag >> 3) { |
1397 | | // required bytes databytes = 1; |
1398 | 0 | case 1: |
1399 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1400 | 0 | auto str = _internal_mutable_databytes(); |
1401 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
1402 | 0 | CHK_(ptr); |
1403 | 0 | } else |
1404 | 0 | goto handle_unusual; |
1405 | 0 | continue; |
1406 | 0 | default: |
1407 | 0 | goto handle_unusual; |
1408 | 0 | } // switch |
1409 | 0 | handle_unusual: |
1410 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1411 | 0 | CHK_(ptr); |
1412 | 0 | ctx->SetLastTag(tag); |
1413 | 0 | goto message_done; |
1414 | 0 | } |
1415 | 0 | ptr = UnknownFieldParse( |
1416 | 0 | tag, |
1417 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1418 | 0 | ptr, ctx); |
1419 | 0 | CHK_(ptr != nullptr); |
1420 | 0 | } // while |
1421 | 0 | message_done: |
1422 | 0 | _impl_._has_bits_.Or(has_bits); |
1423 | 0 | return ptr; |
1424 | 0 | failure: |
1425 | 0 | ptr = nullptr; |
1426 | 0 | goto message_done; |
1427 | 0 | #undef CHK_ |
1428 | 0 | } |
1429 | | |
1430 | | uint8_t* BytesRequest::_InternalSerialize( |
1431 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1432 | | // @@protoc_insertion_point(serialize_to_array_start:test.BytesRequest) |
1433 | 0 | uint32_t cached_has_bits = 0; |
1434 | 0 | (void) cached_has_bits; |
1435 | |
|
1436 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1437 | | // required bytes databytes = 1; |
1438 | 0 | if (cached_has_bits & 0x00000001u) { |
1439 | 0 | target = stream->WriteBytesMaybeAliased( |
1440 | 0 | 1, this->_internal_databytes(), target); |
1441 | 0 | } |
1442 | |
|
1443 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1444 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1445 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1446 | 0 | } |
1447 | | // @@protoc_insertion_point(serialize_to_array_end:test.BytesRequest) |
1448 | 0 | return target; |
1449 | 0 | } |
1450 | | |
1451 | 0 | size_t BytesRequest::ByteSizeLong() const { |
1452 | | // @@protoc_insertion_point(message_byte_size_start:test.BytesRequest) |
1453 | 0 | size_t total_size = 0; |
1454 | | |
1455 | | // required bytes databytes = 1; |
1456 | 0 | if (_internal_has_databytes()) { |
1457 | 0 | total_size += 1 + |
1458 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
1459 | 0 | this->_internal_databytes()); |
1460 | 0 | } |
1461 | 0 | uint32_t cached_has_bits = 0; |
1462 | | // Prevent compiler warnings about cached_has_bits being unused |
1463 | 0 | (void) cached_has_bits; |
1464 | |
|
1465 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1466 | 0 | } |
1467 | | |
1468 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BytesRequest::_class_data_ = { |
1469 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1470 | | BytesRequest::MergeImpl |
1471 | | }; |
1472 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesRequest::GetClassData() const { return &_class_data_; } |
1473 | | |
1474 | | |
1475 | 0 | void BytesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1476 | 0 | auto* const _this = static_cast<BytesRequest*>(&to_msg); |
1477 | 0 | auto& from = static_cast<const BytesRequest&>(from_msg); |
1478 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.BytesRequest) |
1479 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
1480 | 0 | uint32_t cached_has_bits = 0; |
1481 | 0 | (void) cached_has_bits; |
1482 | |
|
1483 | 0 | if (from._internal_has_databytes()) { |
1484 | 0 | _this->_internal_set_databytes(from._internal_databytes()); |
1485 | 0 | } |
1486 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1487 | 0 | } |
1488 | | |
1489 | 0 | void BytesRequest::CopyFrom(const BytesRequest& from) { |
1490 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.BytesRequest) |
1491 | 0 | if (&from == this) return; |
1492 | 0 | Clear(); |
1493 | 0 | MergeFrom(from); |
1494 | 0 | } |
1495 | | |
1496 | 0 | bool BytesRequest::IsInitialized() const { |
1497 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
1498 | 0 | return true; |
1499 | 0 | } |
1500 | | |
1501 | 0 | void BytesRequest::InternalSwap(BytesRequest* other) { |
1502 | 0 | using std::swap; |
1503 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
1504 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
1505 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1506 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1507 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
1508 | 0 | &_impl_.databytes_, lhs_arena, |
1509 | 0 | &other->_impl_.databytes_, rhs_arena |
1510 | 0 | ); |
1511 | 0 | } |
1512 | | |
1513 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata BytesRequest::GetMetadata() const { |
1514 | 0 | return ::_pbi::AssignDescriptors( |
1515 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1516 | 0 | file_level_metadata_echo_2eproto[3]); |
1517 | 0 | } |
1518 | | |
1519 | | // =================================================================== |
1520 | | |
1521 | | class BytesResponse::_Internal { |
1522 | | public: |
1523 | | using HasBits = decltype(std::declval<BytesResponse>()._impl_._has_bits_); |
1524 | 0 | static void set_has_databytes(HasBits* has_bits) { |
1525 | 0 | (*has_bits)[0] |= 1u; |
1526 | 0 | } |
1527 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
1528 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1529 | 0 | } |
1530 | | }; |
1531 | | |
1532 | | BytesResponse::BytesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1533 | | bool is_message_owned) |
1534 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1535 | 0 | SharedCtor(arena, is_message_owned); |
1536 | | // @@protoc_insertion_point(arena_constructor:test.BytesResponse) |
1537 | 0 | } |
1538 | | BytesResponse::BytesResponse(const BytesResponse& from) |
1539 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1540 | 0 | BytesResponse* const _this = this; (void)_this; |
1541 | 0 | new (&_impl_) Impl_{ |
1542 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
1543 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1544 | 0 | , decltype(_impl_.databytes_){}}; |
1545 | |
|
1546 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1547 | 0 | _impl_.databytes_.InitDefault(); |
1548 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1549 | | _impl_.databytes_.Set("", GetArenaForAllocation()); |
1550 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1551 | 0 | if (from._internal_has_databytes()) { |
1552 | 0 | _this->_impl_.databytes_.Set(from._internal_databytes(), |
1553 | 0 | _this->GetArenaForAllocation()); |
1554 | 0 | } |
1555 | | // @@protoc_insertion_point(copy_constructor:test.BytesResponse) |
1556 | 0 | } |
1557 | | |
1558 | | inline void BytesResponse::SharedCtor( |
1559 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
1560 | 0 | (void)arena; |
1561 | 0 | (void)is_message_owned; |
1562 | 0 | new (&_impl_) Impl_{ |
1563 | 0 | decltype(_impl_._has_bits_){} |
1564 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1565 | 0 | , decltype(_impl_.databytes_){} |
1566 | 0 | }; |
1567 | 0 | _impl_.databytes_.InitDefault(); |
1568 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1569 | | _impl_.databytes_.Set("", GetArenaForAllocation()); |
1570 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1571 | 0 | } |
1572 | | |
1573 | 0 | BytesResponse::~BytesResponse() { |
1574 | | // @@protoc_insertion_point(destructor:test.BytesResponse) |
1575 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1576 | 0 | (void)arena; |
1577 | 0 | return; |
1578 | 0 | } |
1579 | 0 | SharedDtor(); |
1580 | 0 | } |
1581 | | |
1582 | 0 | inline void BytesResponse::SharedDtor() { |
1583 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1584 | 0 | _impl_.databytes_.Destroy(); |
1585 | 0 | } |
1586 | | |
1587 | 0 | void BytesResponse::SetCachedSize(int size) const { |
1588 | 0 | _impl_._cached_size_.Set(size); |
1589 | 0 | } |
1590 | | |
1591 | 0 | void BytesResponse::Clear() { |
1592 | | // @@protoc_insertion_point(message_clear_start:test.BytesResponse) |
1593 | 0 | uint32_t cached_has_bits = 0; |
1594 | | // Prevent compiler warnings about cached_has_bits being unused |
1595 | 0 | (void) cached_has_bits; |
1596 | |
|
1597 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1598 | 0 | if (cached_has_bits & 0x00000001u) { |
1599 | 0 | _impl_.databytes_.ClearNonDefaultToEmpty(); |
1600 | 0 | } |
1601 | 0 | _impl_._has_bits_.Clear(); |
1602 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1603 | 0 | } |
1604 | | |
1605 | 0 | const char* BytesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1606 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1607 | 0 | _Internal::HasBits has_bits{}; |
1608 | 0 | while (!ctx->Done(&ptr)) { |
1609 | 0 | uint32_t tag; |
1610 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1611 | 0 | switch (tag >> 3) { |
1612 | | // required bytes databytes = 1; |
1613 | 0 | case 1: |
1614 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1615 | 0 | auto str = _internal_mutable_databytes(); |
1616 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
1617 | 0 | CHK_(ptr); |
1618 | 0 | } else |
1619 | 0 | goto handle_unusual; |
1620 | 0 | continue; |
1621 | 0 | default: |
1622 | 0 | goto handle_unusual; |
1623 | 0 | } // switch |
1624 | 0 | handle_unusual: |
1625 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1626 | 0 | CHK_(ptr); |
1627 | 0 | ctx->SetLastTag(tag); |
1628 | 0 | goto message_done; |
1629 | 0 | } |
1630 | 0 | ptr = UnknownFieldParse( |
1631 | 0 | tag, |
1632 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1633 | 0 | ptr, ctx); |
1634 | 0 | CHK_(ptr != nullptr); |
1635 | 0 | } // while |
1636 | 0 | message_done: |
1637 | 0 | _impl_._has_bits_.Or(has_bits); |
1638 | 0 | return ptr; |
1639 | 0 | failure: |
1640 | 0 | ptr = nullptr; |
1641 | 0 | goto message_done; |
1642 | 0 | #undef CHK_ |
1643 | 0 | } |
1644 | | |
1645 | | uint8_t* BytesResponse::_InternalSerialize( |
1646 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1647 | | // @@protoc_insertion_point(serialize_to_array_start:test.BytesResponse) |
1648 | 0 | uint32_t cached_has_bits = 0; |
1649 | 0 | (void) cached_has_bits; |
1650 | |
|
1651 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1652 | | // required bytes databytes = 1; |
1653 | 0 | if (cached_has_bits & 0x00000001u) { |
1654 | 0 | target = stream->WriteBytesMaybeAliased( |
1655 | 0 | 1, this->_internal_databytes(), target); |
1656 | 0 | } |
1657 | |
|
1658 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1659 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1660 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1661 | 0 | } |
1662 | | // @@protoc_insertion_point(serialize_to_array_end:test.BytesResponse) |
1663 | 0 | return target; |
1664 | 0 | } |
1665 | | |
1666 | 0 | size_t BytesResponse::ByteSizeLong() const { |
1667 | | // @@protoc_insertion_point(message_byte_size_start:test.BytesResponse) |
1668 | 0 | size_t total_size = 0; |
1669 | | |
1670 | | // required bytes databytes = 1; |
1671 | 0 | if (_internal_has_databytes()) { |
1672 | 0 | total_size += 1 + |
1673 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
1674 | 0 | this->_internal_databytes()); |
1675 | 0 | } |
1676 | 0 | uint32_t cached_has_bits = 0; |
1677 | | // Prevent compiler warnings about cached_has_bits being unused |
1678 | 0 | (void) cached_has_bits; |
1679 | |
|
1680 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1681 | 0 | } |
1682 | | |
1683 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BytesResponse::_class_data_ = { |
1684 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1685 | | BytesResponse::MergeImpl |
1686 | | }; |
1687 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BytesResponse::GetClassData() const { return &_class_data_; } |
1688 | | |
1689 | | |
1690 | 0 | void BytesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1691 | 0 | auto* const _this = static_cast<BytesResponse*>(&to_msg); |
1692 | 0 | auto& from = static_cast<const BytesResponse&>(from_msg); |
1693 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.BytesResponse) |
1694 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
1695 | 0 | uint32_t cached_has_bits = 0; |
1696 | 0 | (void) cached_has_bits; |
1697 | |
|
1698 | 0 | if (from._internal_has_databytes()) { |
1699 | 0 | _this->_internal_set_databytes(from._internal_databytes()); |
1700 | 0 | } |
1701 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1702 | 0 | } |
1703 | | |
1704 | 0 | void BytesResponse::CopyFrom(const BytesResponse& from) { |
1705 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.BytesResponse) |
1706 | 0 | if (&from == this) return; |
1707 | 0 | Clear(); |
1708 | 0 | MergeFrom(from); |
1709 | 0 | } |
1710 | | |
1711 | 0 | bool BytesResponse::IsInitialized() const { |
1712 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
1713 | 0 | return true; |
1714 | 0 | } |
1715 | | |
1716 | 0 | void BytesResponse::InternalSwap(BytesResponse* other) { |
1717 | 0 | using std::swap; |
1718 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
1719 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
1720 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1721 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1722 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
1723 | 0 | &_impl_.databytes_, lhs_arena, |
1724 | 0 | &other->_impl_.databytes_, rhs_arena |
1725 | 0 | ); |
1726 | 0 | } |
1727 | | |
1728 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata BytesResponse::GetMetadata() const { |
1729 | 0 | return ::_pbi::AssignDescriptors( |
1730 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1731 | 0 | file_level_metadata_echo_2eproto[4]); |
1732 | 0 | } |
1733 | | |
1734 | | // =================================================================== |
1735 | | |
1736 | | class ComboResponse::_Internal { |
1737 | | public: |
1738 | | }; |
1739 | | |
1740 | | ComboResponse::ComboResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1741 | | bool is_message_owned) |
1742 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1743 | 0 | SharedCtor(arena, is_message_owned); |
1744 | | // @@protoc_insertion_point(arena_constructor:test.ComboResponse) |
1745 | 0 | } |
1746 | | ComboResponse::ComboResponse(const ComboResponse& from) |
1747 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1748 | 0 | ComboResponse* const _this = this; (void)_this; |
1749 | 0 | new (&_impl_) Impl_{ |
1750 | 0 | decltype(_impl_.responses_){from._impl_.responses_} |
1751 | 0 | , /*decltype(_impl_._cached_size_)*/{}}; |
1752 | |
|
1753 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1754 | | // @@protoc_insertion_point(copy_constructor:test.ComboResponse) |
1755 | 0 | } |
1756 | | |
1757 | | inline void ComboResponse::SharedCtor( |
1758 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
1759 | 0 | (void)arena; |
1760 | 0 | (void)is_message_owned; |
1761 | 0 | new (&_impl_) Impl_{ |
1762 | 0 | decltype(_impl_.responses_){arena} |
1763 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1764 | 0 | }; |
1765 | 0 | } |
1766 | | |
1767 | 0 | ComboResponse::~ComboResponse() { |
1768 | | // @@protoc_insertion_point(destructor:test.ComboResponse) |
1769 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1770 | 0 | (void)arena; |
1771 | 0 | return; |
1772 | 0 | } |
1773 | 0 | SharedDtor(); |
1774 | 0 | } |
1775 | | |
1776 | 0 | inline void ComboResponse::SharedDtor() { |
1777 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1778 | 0 | _impl_.responses_.~RepeatedPtrField(); |
1779 | 0 | } |
1780 | | |
1781 | 0 | void ComboResponse::SetCachedSize(int size) const { |
1782 | 0 | _impl_._cached_size_.Set(size); |
1783 | 0 | } |
1784 | | |
1785 | 0 | void ComboResponse::Clear() { |
1786 | | // @@protoc_insertion_point(message_clear_start:test.ComboResponse) |
1787 | 0 | uint32_t cached_has_bits = 0; |
1788 | | // Prevent compiler warnings about cached_has_bits being unused |
1789 | 0 | (void) cached_has_bits; |
1790 | |
|
1791 | 0 | _impl_.responses_.Clear(); |
1792 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1793 | 0 | } |
1794 | | |
1795 | 0 | const char* ComboResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1796 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1797 | 0 | while (!ctx->Done(&ptr)) { |
1798 | 0 | uint32_t tag; |
1799 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1800 | 0 | switch (tag >> 3) { |
1801 | | // repeated .test.EchoResponse responses = 1; |
1802 | 0 | case 1: |
1803 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1804 | 0 | ptr -= 1; |
1805 | 0 | do { |
1806 | 0 | ptr += 1; |
1807 | 0 | ptr = ctx->ParseMessage(_internal_add_responses(), ptr); |
1808 | 0 | CHK_(ptr); |
1809 | 0 | if (!ctx->DataAvailable(ptr)) break; |
1810 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
1811 | 0 | } else |
1812 | 0 | goto handle_unusual; |
1813 | 0 | continue; |
1814 | 0 | default: |
1815 | 0 | goto handle_unusual; |
1816 | 0 | } // switch |
1817 | 0 | handle_unusual: |
1818 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1819 | 0 | CHK_(ptr); |
1820 | 0 | ctx->SetLastTag(tag); |
1821 | 0 | goto message_done; |
1822 | 0 | } |
1823 | 0 | ptr = UnknownFieldParse( |
1824 | 0 | tag, |
1825 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1826 | 0 | ptr, ctx); |
1827 | 0 | CHK_(ptr != nullptr); |
1828 | 0 | } // while |
1829 | 0 | message_done: |
1830 | 0 | return ptr; |
1831 | 0 | failure: |
1832 | 0 | ptr = nullptr; |
1833 | 0 | goto message_done; |
1834 | 0 | #undef CHK_ |
1835 | 0 | } |
1836 | | |
1837 | | uint8_t* ComboResponse::_InternalSerialize( |
1838 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1839 | | // @@protoc_insertion_point(serialize_to_array_start:test.ComboResponse) |
1840 | 0 | uint32_t cached_has_bits = 0; |
1841 | 0 | (void) cached_has_bits; |
1842 | | |
1843 | | // repeated .test.EchoResponse responses = 1; |
1844 | 0 | for (unsigned i = 0, |
1845 | 0 | n = static_cast<unsigned>(this->_internal_responses_size()); i < n; i++) { |
1846 | 0 | const auto& repfield = this->_internal_responses(i); |
1847 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1848 | 0 | InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); |
1849 | 0 | } |
1850 | |
|
1851 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1852 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1853 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1854 | 0 | } |
1855 | | // @@protoc_insertion_point(serialize_to_array_end:test.ComboResponse) |
1856 | 0 | return target; |
1857 | 0 | } |
1858 | | |
1859 | 0 | size_t ComboResponse::ByteSizeLong() const { |
1860 | | // @@protoc_insertion_point(message_byte_size_start:test.ComboResponse) |
1861 | 0 | size_t total_size = 0; |
1862 | |
|
1863 | 0 | uint32_t cached_has_bits = 0; |
1864 | | // Prevent compiler warnings about cached_has_bits being unused |
1865 | 0 | (void) cached_has_bits; |
1866 | | |
1867 | | // repeated .test.EchoResponse responses = 1; |
1868 | 0 | total_size += 1UL * this->_internal_responses_size(); |
1869 | 0 | for (const auto& msg : this->_impl_.responses_) { |
1870 | 0 | total_size += |
1871 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
1872 | 0 | } |
1873 | |
|
1874 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1875 | 0 | } |
1876 | | |
1877 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComboResponse::_class_data_ = { |
1878 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1879 | | ComboResponse::MergeImpl |
1880 | | }; |
1881 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComboResponse::GetClassData() const { return &_class_data_; } |
1882 | | |
1883 | | |
1884 | 0 | void ComboResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1885 | 0 | auto* const _this = static_cast<ComboResponse*>(&to_msg); |
1886 | 0 | auto& from = static_cast<const ComboResponse&>(from_msg); |
1887 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.ComboResponse) |
1888 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
1889 | 0 | uint32_t cached_has_bits = 0; |
1890 | 0 | (void) cached_has_bits; |
1891 | |
|
1892 | 0 | _this->_impl_.responses_.MergeFrom(from._impl_.responses_); |
1893 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1894 | 0 | } |
1895 | | |
1896 | 0 | void ComboResponse::CopyFrom(const ComboResponse& from) { |
1897 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.ComboResponse) |
1898 | 0 | if (&from == this) return; |
1899 | 0 | Clear(); |
1900 | 0 | MergeFrom(from); |
1901 | 0 | } |
1902 | | |
1903 | 0 | bool ComboResponse::IsInitialized() const { |
1904 | 0 | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.responses_)) |
1905 | 0 | return false; |
1906 | 0 | return true; |
1907 | 0 | } |
1908 | | |
1909 | 0 | void ComboResponse::InternalSwap(ComboResponse* other) { |
1910 | 0 | using std::swap; |
1911 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1912 | 0 | _impl_.responses_.InternalSwap(&other->_impl_.responses_); |
1913 | 0 | } |
1914 | | |
1915 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata ComboResponse::GetMetadata() const { |
1916 | 0 | return ::_pbi::AssignDescriptors( |
1917 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1918 | 0 | file_level_metadata_echo_2eproto[5]); |
1919 | 0 | } |
1920 | | |
1921 | | // =================================================================== |
1922 | | |
1923 | | class HttpRequest::_Internal { |
1924 | | public: |
1925 | | }; |
1926 | | |
1927 | | HttpRequest::HttpRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1928 | | bool is_message_owned) |
1929 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
1930 | | // @@protoc_insertion_point(arena_constructor:test.HttpRequest) |
1931 | 0 | } |
1932 | | HttpRequest::HttpRequest(const HttpRequest& from) |
1933 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
1934 | 0 | HttpRequest* const _this = this; (void)_this; |
1935 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1936 | | // @@protoc_insertion_point(copy_constructor:test.HttpRequest) |
1937 | 0 | } |
1938 | | |
1939 | | |
1940 | | |
1941 | | |
1942 | | |
1943 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRequest::_class_data_ = { |
1944 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
1945 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
1946 | | }; |
1947 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRequest::GetClassData() const { return &_class_data_; } |
1948 | | |
1949 | | |
1950 | | |
1951 | | |
1952 | | |
1953 | | |
1954 | | |
1955 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata HttpRequest::GetMetadata() const { |
1956 | 0 | return ::_pbi::AssignDescriptors( |
1957 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1958 | 0 | file_level_metadata_echo_2eproto[6]); |
1959 | 0 | } |
1960 | | |
1961 | | // =================================================================== |
1962 | | |
1963 | | class HttpResponse::_Internal { |
1964 | | public: |
1965 | | }; |
1966 | | |
1967 | | HttpResponse::HttpResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1968 | | bool is_message_owned) |
1969 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
1970 | | // @@protoc_insertion_point(arena_constructor:test.HttpResponse) |
1971 | 0 | } |
1972 | | HttpResponse::HttpResponse(const HttpResponse& from) |
1973 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
1974 | 0 | HttpResponse* const _this = this; (void)_this; |
1975 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1976 | | // @@protoc_insertion_point(copy_constructor:test.HttpResponse) |
1977 | 0 | } |
1978 | | |
1979 | | |
1980 | | |
1981 | | |
1982 | | |
1983 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpResponse::_class_data_ = { |
1984 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
1985 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
1986 | | }; |
1987 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpResponse::GetClassData() const { return &_class_data_; } |
1988 | | |
1989 | | |
1990 | | |
1991 | | |
1992 | | |
1993 | | |
1994 | | |
1995 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata HttpResponse::GetMetadata() const { |
1996 | 0 | return ::_pbi::AssignDescriptors( |
1997 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
1998 | 0 | file_level_metadata_echo_2eproto[7]); |
1999 | 0 | } |
2000 | | |
2001 | | // =================================================================== |
2002 | | |
2003 | | class Message1::_Internal { |
2004 | | public: |
2005 | | using HasBits = decltype(std::declval<Message1>()._impl_._has_bits_); |
2006 | 0 | static void set_has_stat(HasBits* has_bits) { |
2007 | 0 | (*has_bits)[0] |= 1u; |
2008 | 0 | } |
2009 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2010 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2011 | 0 | } |
2012 | | }; |
2013 | | |
2014 | | Message1::Message1(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2015 | | bool is_message_owned) |
2016 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
2017 | 0 | SharedCtor(arena, is_message_owned); |
2018 | | // @@protoc_insertion_point(arena_constructor:test.Message1) |
2019 | 0 | } |
2020 | | Message1::Message1(const Message1& from) |
2021 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
2022 | 0 | Message1* const _this = this; (void)_this; |
2023 | 0 | new (&_impl_) Impl_{ |
2024 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
2025 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2026 | 0 | , decltype(_impl_.stat_){}}; |
2027 | |
|
2028 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2029 | 0 | _this->_impl_.stat_ = from._impl_.stat_; |
2030 | | // @@protoc_insertion_point(copy_constructor:test.Message1) |
2031 | 0 | } |
2032 | | |
2033 | | inline void Message1::SharedCtor( |
2034 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
2035 | 0 | (void)arena; |
2036 | 0 | (void)is_message_owned; |
2037 | 0 | new (&_impl_) Impl_{ |
2038 | 0 | decltype(_impl_._has_bits_){} |
2039 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2040 | 0 | , decltype(_impl_.stat_){0} |
2041 | 0 | }; |
2042 | 0 | } |
2043 | | |
2044 | 0 | Message1::~Message1() { |
2045 | | // @@protoc_insertion_point(destructor:test.Message1) |
2046 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
2047 | 0 | (void)arena; |
2048 | 0 | return; |
2049 | 0 | } |
2050 | 0 | SharedDtor(); |
2051 | 0 | } |
2052 | | |
2053 | 0 | inline void Message1::SharedDtor() { |
2054 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
2055 | 0 | } |
2056 | | |
2057 | 0 | void Message1::SetCachedSize(int size) const { |
2058 | 0 | _impl_._cached_size_.Set(size); |
2059 | 0 | } |
2060 | | |
2061 | 0 | void Message1::Clear() { |
2062 | | // @@protoc_insertion_point(message_clear_start:test.Message1) |
2063 | 0 | uint32_t cached_has_bits = 0; |
2064 | | // Prevent compiler warnings about cached_has_bits being unused |
2065 | 0 | (void) cached_has_bits; |
2066 | |
|
2067 | 0 | _impl_.stat_ = 0; |
2068 | 0 | _impl_._has_bits_.Clear(); |
2069 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2070 | 0 | } |
2071 | | |
2072 | 0 | const char* Message1::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
2073 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2074 | 0 | _Internal::HasBits has_bits{}; |
2075 | 0 | while (!ctx->Done(&ptr)) { |
2076 | 0 | uint32_t tag; |
2077 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
2078 | 0 | switch (tag >> 3) { |
2079 | | // required .test.State0 stat = 1; |
2080 | 0 | case 1: |
2081 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
2082 | 0 | uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
2083 | 0 | CHK_(ptr); |
2084 | 0 | if (PROTOBUF_PREDICT_TRUE(::test::State0_IsValid(val))) { |
2085 | 0 | _internal_set_stat(static_cast<::test::State0>(val)); |
2086 | 0 | } else { |
2087 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); |
2088 | 0 | } |
2089 | 0 | } else |
2090 | 0 | goto handle_unusual; |
2091 | 0 | continue; |
2092 | 0 | default: |
2093 | 0 | goto handle_unusual; |
2094 | 0 | } // switch |
2095 | 0 | handle_unusual: |
2096 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
2097 | 0 | CHK_(ptr); |
2098 | 0 | ctx->SetLastTag(tag); |
2099 | 0 | goto message_done; |
2100 | 0 | } |
2101 | 0 | ptr = UnknownFieldParse( |
2102 | 0 | tag, |
2103 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
2104 | 0 | ptr, ctx); |
2105 | 0 | CHK_(ptr != nullptr); |
2106 | 0 | } // while |
2107 | 0 | message_done: |
2108 | 0 | _impl_._has_bits_.Or(has_bits); |
2109 | 0 | return ptr; |
2110 | 0 | failure: |
2111 | 0 | ptr = nullptr; |
2112 | 0 | goto message_done; |
2113 | 0 | #undef CHK_ |
2114 | 0 | } |
2115 | | |
2116 | | uint8_t* Message1::_InternalSerialize( |
2117 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
2118 | | // @@protoc_insertion_point(serialize_to_array_start:test.Message1) |
2119 | 0 | uint32_t cached_has_bits = 0; |
2120 | 0 | (void) cached_has_bits; |
2121 | |
|
2122 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2123 | | // required .test.State0 stat = 1; |
2124 | 0 | if (cached_has_bits & 0x00000001u) { |
2125 | 0 | target = stream->EnsureSpace(target); |
2126 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2127 | 0 | 1, this->_internal_stat(), target); |
2128 | 0 | } |
2129 | |
|
2130 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
2131 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2132 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
2133 | 0 | } |
2134 | | // @@protoc_insertion_point(serialize_to_array_end:test.Message1) |
2135 | 0 | return target; |
2136 | 0 | } |
2137 | | |
2138 | 0 | size_t Message1::ByteSizeLong() const { |
2139 | | // @@protoc_insertion_point(message_byte_size_start:test.Message1) |
2140 | 0 | size_t total_size = 0; |
2141 | | |
2142 | | // required .test.State0 stat = 1; |
2143 | 0 | if (_internal_has_stat()) { |
2144 | 0 | total_size += 1 + |
2145 | 0 | ::_pbi::WireFormatLite::EnumSize(this->_internal_stat()); |
2146 | 0 | } |
2147 | 0 | uint32_t cached_has_bits = 0; |
2148 | | // Prevent compiler warnings about cached_has_bits being unused |
2149 | 0 | (void) cached_has_bits; |
2150 | |
|
2151 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
2152 | 0 | } |
2153 | | |
2154 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message1::_class_data_ = { |
2155 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
2156 | | Message1::MergeImpl |
2157 | | }; |
2158 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message1::GetClassData() const { return &_class_data_; } |
2159 | | |
2160 | | |
2161 | 0 | void Message1::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
2162 | 0 | auto* const _this = static_cast<Message1*>(&to_msg); |
2163 | 0 | auto& from = static_cast<const Message1&>(from_msg); |
2164 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.Message1) |
2165 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
2166 | 0 | uint32_t cached_has_bits = 0; |
2167 | 0 | (void) cached_has_bits; |
2168 | |
|
2169 | 0 | if (from._internal_has_stat()) { |
2170 | 0 | _this->_internal_set_stat(from._internal_stat()); |
2171 | 0 | } |
2172 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2173 | 0 | } |
2174 | | |
2175 | 0 | void Message1::CopyFrom(const Message1& from) { |
2176 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.Message1) |
2177 | 0 | if (&from == this) return; |
2178 | 0 | Clear(); |
2179 | 0 | MergeFrom(from); |
2180 | 0 | } |
2181 | | |
2182 | 0 | bool Message1::IsInitialized() const { |
2183 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
2184 | 0 | return true; |
2185 | 0 | } |
2186 | | |
2187 | 0 | void Message1::InternalSwap(Message1* other) { |
2188 | 0 | using std::swap; |
2189 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2190 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2191 | 0 | swap(_impl_.stat_, other->_impl_.stat_); |
2192 | 0 | } |
2193 | | |
2194 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata Message1::GetMetadata() const { |
2195 | 0 | return ::_pbi::AssignDescriptors( |
2196 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
2197 | 0 | file_level_metadata_echo_2eproto[8]); |
2198 | 0 | } |
2199 | | |
2200 | | // =================================================================== |
2201 | | |
2202 | | class Message2::_Internal { |
2203 | | public: |
2204 | | using HasBits = decltype(std::declval<Message2>()._impl_._has_bits_); |
2205 | 0 | static void set_has_stat(HasBits* has_bits) { |
2206 | 0 | (*has_bits)[0] |= 1u; |
2207 | 0 | } |
2208 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
2209 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2210 | 0 | } |
2211 | | }; |
2212 | | |
2213 | | Message2::Message2(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2214 | | bool is_message_owned) |
2215 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
2216 | 0 | SharedCtor(arena, is_message_owned); |
2217 | | // @@protoc_insertion_point(arena_constructor:test.Message2) |
2218 | 0 | } |
2219 | | Message2::Message2(const Message2& from) |
2220 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
2221 | 0 | Message2* const _this = this; (void)_this; |
2222 | 0 | new (&_impl_) Impl_{ |
2223 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
2224 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2225 | 0 | , decltype(_impl_.stat_){}}; |
2226 | |
|
2227 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2228 | 0 | _this->_impl_.stat_ = from._impl_.stat_; |
2229 | | // @@protoc_insertion_point(copy_constructor:test.Message2) |
2230 | 0 | } |
2231 | | |
2232 | | inline void Message2::SharedCtor( |
2233 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
2234 | 0 | (void)arena; |
2235 | 0 | (void)is_message_owned; |
2236 | 0 | new (&_impl_) Impl_{ |
2237 | 0 | decltype(_impl_._has_bits_){} |
2238 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2239 | 0 | , decltype(_impl_.stat_){0} |
2240 | 0 | }; |
2241 | 0 | } |
2242 | | |
2243 | 0 | Message2::~Message2() { |
2244 | | // @@protoc_insertion_point(destructor:test.Message2) |
2245 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
2246 | 0 | (void)arena; |
2247 | 0 | return; |
2248 | 0 | } |
2249 | 0 | SharedDtor(); |
2250 | 0 | } |
2251 | | |
2252 | 0 | inline void Message2::SharedDtor() { |
2253 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
2254 | 0 | } |
2255 | | |
2256 | 0 | void Message2::SetCachedSize(int size) const { |
2257 | 0 | _impl_._cached_size_.Set(size); |
2258 | 0 | } |
2259 | | |
2260 | 0 | void Message2::Clear() { |
2261 | | // @@protoc_insertion_point(message_clear_start:test.Message2) |
2262 | 0 | uint32_t cached_has_bits = 0; |
2263 | | // Prevent compiler warnings about cached_has_bits being unused |
2264 | 0 | (void) cached_has_bits; |
2265 | |
|
2266 | 0 | _impl_.stat_ = 0; |
2267 | 0 | _impl_._has_bits_.Clear(); |
2268 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2269 | 0 | } |
2270 | | |
2271 | 0 | const char* Message2::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
2272 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2273 | 0 | _Internal::HasBits has_bits{}; |
2274 | 0 | while (!ctx->Done(&ptr)) { |
2275 | 0 | uint32_t tag; |
2276 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
2277 | 0 | switch (tag >> 3) { |
2278 | | // required .test.State1 stat = 1; |
2279 | 0 | case 1: |
2280 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
2281 | 0 | uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
2282 | 0 | CHK_(ptr); |
2283 | 0 | if (PROTOBUF_PREDICT_TRUE(::test::State1_IsValid(val))) { |
2284 | 0 | _internal_set_stat(static_cast<::test::State1>(val)); |
2285 | 0 | } else { |
2286 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); |
2287 | 0 | } |
2288 | 0 | } else |
2289 | 0 | goto handle_unusual; |
2290 | 0 | continue; |
2291 | 0 | default: |
2292 | 0 | goto handle_unusual; |
2293 | 0 | } // switch |
2294 | 0 | handle_unusual: |
2295 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
2296 | 0 | CHK_(ptr); |
2297 | 0 | ctx->SetLastTag(tag); |
2298 | 0 | goto message_done; |
2299 | 0 | } |
2300 | 0 | ptr = UnknownFieldParse( |
2301 | 0 | tag, |
2302 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
2303 | 0 | ptr, ctx); |
2304 | 0 | CHK_(ptr != nullptr); |
2305 | 0 | } // while |
2306 | 0 | message_done: |
2307 | 0 | _impl_._has_bits_.Or(has_bits); |
2308 | 0 | return ptr; |
2309 | 0 | failure: |
2310 | 0 | ptr = nullptr; |
2311 | 0 | goto message_done; |
2312 | 0 | #undef CHK_ |
2313 | 0 | } |
2314 | | |
2315 | | uint8_t* Message2::_InternalSerialize( |
2316 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
2317 | | // @@protoc_insertion_point(serialize_to_array_start:test.Message2) |
2318 | 0 | uint32_t cached_has_bits = 0; |
2319 | 0 | (void) cached_has_bits; |
2320 | |
|
2321 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2322 | | // required .test.State1 stat = 1; |
2323 | 0 | if (cached_has_bits & 0x00000001u) { |
2324 | 0 | target = stream->EnsureSpace(target); |
2325 | 0 | target = ::_pbi::WireFormatLite::WriteEnumToArray( |
2326 | 0 | 1, this->_internal_stat(), target); |
2327 | 0 | } |
2328 | |
|
2329 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
2330 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2331 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
2332 | 0 | } |
2333 | | // @@protoc_insertion_point(serialize_to_array_end:test.Message2) |
2334 | 0 | return target; |
2335 | 0 | } |
2336 | | |
2337 | 0 | size_t Message2::ByteSizeLong() const { |
2338 | | // @@protoc_insertion_point(message_byte_size_start:test.Message2) |
2339 | 0 | size_t total_size = 0; |
2340 | | |
2341 | | // required .test.State1 stat = 1; |
2342 | 0 | if (_internal_has_stat()) { |
2343 | 0 | total_size += 1 + |
2344 | 0 | ::_pbi::WireFormatLite::EnumSize(this->_internal_stat()); |
2345 | 0 | } |
2346 | 0 | uint32_t cached_has_bits = 0; |
2347 | | // Prevent compiler warnings about cached_has_bits being unused |
2348 | 0 | (void) cached_has_bits; |
2349 | |
|
2350 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
2351 | 0 | } |
2352 | | |
2353 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message2::_class_data_ = { |
2354 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
2355 | | Message2::MergeImpl |
2356 | | }; |
2357 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message2::GetClassData() const { return &_class_data_; } |
2358 | | |
2359 | | |
2360 | 0 | void Message2::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
2361 | 0 | auto* const _this = static_cast<Message2*>(&to_msg); |
2362 | 0 | auto& from = static_cast<const Message2&>(from_msg); |
2363 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.Message2) |
2364 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
2365 | 0 | uint32_t cached_has_bits = 0; |
2366 | 0 | (void) cached_has_bits; |
2367 | |
|
2368 | 0 | if (from._internal_has_stat()) { |
2369 | 0 | _this->_internal_set_stat(from._internal_stat()); |
2370 | 0 | } |
2371 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2372 | 0 | } |
2373 | | |
2374 | 0 | void Message2::CopyFrom(const Message2& from) { |
2375 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.Message2) |
2376 | 0 | if (&from == this) return; |
2377 | 0 | Clear(); |
2378 | 0 | MergeFrom(from); |
2379 | 0 | } |
2380 | | |
2381 | 0 | bool Message2::IsInitialized() const { |
2382 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
2383 | 0 | return true; |
2384 | 0 | } |
2385 | | |
2386 | 0 | void Message2::InternalSwap(Message2* other) { |
2387 | 0 | using std::swap; |
2388 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2389 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2390 | 0 | swap(_impl_.stat_, other->_impl_.stat_); |
2391 | 0 | } |
2392 | | |
2393 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata Message2::GetMetadata() const { |
2394 | 0 | return ::_pbi::AssignDescriptors( |
2395 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
2396 | 0 | file_level_metadata_echo_2eproto[9]); |
2397 | 0 | } |
2398 | | |
2399 | | // =================================================================== |
2400 | | |
2401 | | class RecursiveMessage::_Internal { |
2402 | | public: |
2403 | | using HasBits = decltype(std::declval<RecursiveMessage>()._impl_._has_bits_); |
2404 | | static const ::test::RecursiveMessage& child(const RecursiveMessage* msg); |
2405 | 0 | static void set_has_child(HasBits* has_bits) { |
2406 | 0 | (*has_bits)[0] |= 2u; |
2407 | 0 | } |
2408 | 0 | static void set_has_data(HasBits* has_bits) { |
2409 | 0 | (*has_bits)[0] |= 1u; |
2410 | 0 | } |
2411 | | }; |
2412 | | |
2413 | | const ::test::RecursiveMessage& |
2414 | 0 | RecursiveMessage::_Internal::child(const RecursiveMessage* msg) { |
2415 | 0 | return *msg->_impl_.child_; |
2416 | 0 | } |
2417 | | RecursiveMessage::RecursiveMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2418 | | bool is_message_owned) |
2419 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
2420 | 0 | SharedCtor(arena, is_message_owned); |
2421 | | // @@protoc_insertion_point(arena_constructor:test.RecursiveMessage) |
2422 | 0 | } |
2423 | | RecursiveMessage::RecursiveMessage(const RecursiveMessage& from) |
2424 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
2425 | 0 | RecursiveMessage* const _this = this; (void)_this; |
2426 | 0 | new (&_impl_) Impl_{ |
2427 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
2428 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2429 | 0 | , decltype(_impl_.data_){} |
2430 | 0 | , decltype(_impl_.child_){nullptr}}; |
2431 | |
|
2432 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2433 | 0 | _impl_.data_.InitDefault(); |
2434 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2435 | | _impl_.data_.Set("", GetArenaForAllocation()); |
2436 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2437 | 0 | if (from._internal_has_data()) { |
2438 | 0 | _this->_impl_.data_.Set(from._internal_data(), |
2439 | 0 | _this->GetArenaForAllocation()); |
2440 | 0 | } |
2441 | 0 | if (from._internal_has_child()) { |
2442 | 0 | _this->_impl_.child_ = new ::test::RecursiveMessage(*from._impl_.child_); |
2443 | 0 | } |
2444 | | // @@protoc_insertion_point(copy_constructor:test.RecursiveMessage) |
2445 | 0 | } |
2446 | | |
2447 | | inline void RecursiveMessage::SharedCtor( |
2448 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
2449 | 0 | (void)arena; |
2450 | 0 | (void)is_message_owned; |
2451 | 0 | new (&_impl_) Impl_{ |
2452 | 0 | decltype(_impl_._has_bits_){} |
2453 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2454 | 0 | , decltype(_impl_.data_){} |
2455 | 0 | , decltype(_impl_.child_){nullptr} |
2456 | 0 | }; |
2457 | 0 | _impl_.data_.InitDefault(); |
2458 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2459 | | _impl_.data_.Set("", GetArenaForAllocation()); |
2460 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2461 | 0 | } |
2462 | | |
2463 | 0 | RecursiveMessage::~RecursiveMessage() { |
2464 | | // @@protoc_insertion_point(destructor:test.RecursiveMessage) |
2465 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
2466 | 0 | (void)arena; |
2467 | 0 | return; |
2468 | 0 | } |
2469 | 0 | SharedDtor(); |
2470 | 0 | } |
2471 | | |
2472 | 0 | inline void RecursiveMessage::SharedDtor() { |
2473 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
2474 | 0 | _impl_.data_.Destroy(); |
2475 | 0 | if (this != internal_default_instance()) delete _impl_.child_; |
2476 | 0 | } |
2477 | | |
2478 | 0 | void RecursiveMessage::SetCachedSize(int size) const { |
2479 | 0 | _impl_._cached_size_.Set(size); |
2480 | 0 | } |
2481 | | |
2482 | 0 | void RecursiveMessage::Clear() { |
2483 | | // @@protoc_insertion_point(message_clear_start:test.RecursiveMessage) |
2484 | 0 | uint32_t cached_has_bits = 0; |
2485 | | // Prevent compiler warnings about cached_has_bits being unused |
2486 | 0 | (void) cached_has_bits; |
2487 | |
|
2488 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2489 | 0 | if (cached_has_bits & 0x00000003u) { |
2490 | 0 | if (cached_has_bits & 0x00000001u) { |
2491 | 0 | _impl_.data_.ClearNonDefaultToEmpty(); |
2492 | 0 | } |
2493 | 0 | if (cached_has_bits & 0x00000002u) { |
2494 | 0 | GOOGLE_DCHECK(_impl_.child_ != nullptr); |
2495 | 0 | _impl_.child_->Clear(); |
2496 | 0 | } |
2497 | 0 | } |
2498 | 0 | _impl_._has_bits_.Clear(); |
2499 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2500 | 0 | } |
2501 | | |
2502 | 0 | const char* RecursiveMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
2503 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2504 | 0 | _Internal::HasBits has_bits{}; |
2505 | 0 | while (!ctx->Done(&ptr)) { |
2506 | 0 | uint32_t tag; |
2507 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
2508 | 0 | switch (tag >> 3) { |
2509 | | // optional .test.RecursiveMessage child = 1; |
2510 | 0 | case 1: |
2511 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
2512 | 0 | ptr = ctx->ParseMessage(_internal_mutable_child(), ptr); |
2513 | 0 | CHK_(ptr); |
2514 | 0 | } else |
2515 | 0 | goto handle_unusual; |
2516 | 0 | continue; |
2517 | | // optional string data = 2; |
2518 | 0 | case 2: |
2519 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
2520 | 0 | auto str = _internal_mutable_data(); |
2521 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
2522 | 0 | CHK_(ptr); |
2523 | 0 | #ifndef NDEBUG |
2524 | 0 | ::_pbi::VerifyUTF8(str, "test.RecursiveMessage.data"); |
2525 | 0 | #endif // !NDEBUG |
2526 | 0 | } else |
2527 | 0 | goto handle_unusual; |
2528 | 0 | continue; |
2529 | 0 | default: |
2530 | 0 | goto handle_unusual; |
2531 | 0 | } // switch |
2532 | 0 | handle_unusual: |
2533 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
2534 | 0 | CHK_(ptr); |
2535 | 0 | ctx->SetLastTag(tag); |
2536 | 0 | goto message_done; |
2537 | 0 | } |
2538 | 0 | ptr = UnknownFieldParse( |
2539 | 0 | tag, |
2540 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
2541 | 0 | ptr, ctx); |
2542 | 0 | CHK_(ptr != nullptr); |
2543 | 0 | } // while |
2544 | 0 | message_done: |
2545 | 0 | _impl_._has_bits_.Or(has_bits); |
2546 | 0 | return ptr; |
2547 | 0 | failure: |
2548 | 0 | ptr = nullptr; |
2549 | 0 | goto message_done; |
2550 | 0 | #undef CHK_ |
2551 | 0 | } |
2552 | | |
2553 | | uint8_t* RecursiveMessage::_InternalSerialize( |
2554 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
2555 | | // @@protoc_insertion_point(serialize_to_array_start:test.RecursiveMessage) |
2556 | 0 | uint32_t cached_has_bits = 0; |
2557 | 0 | (void) cached_has_bits; |
2558 | |
|
2559 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2560 | | // optional .test.RecursiveMessage child = 1; |
2561 | 0 | if (cached_has_bits & 0x00000002u) { |
2562 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2563 | 0 | InternalWriteMessage(1, _Internal::child(this), |
2564 | 0 | _Internal::child(this).GetCachedSize(), target, stream); |
2565 | 0 | } |
2566 | | |
2567 | | // optional string data = 2; |
2568 | 0 | if (cached_has_bits & 0x00000001u) { |
2569 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
2570 | 0 | this->_internal_data().data(), static_cast<int>(this->_internal_data().length()), |
2571 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
2572 | 0 | "test.RecursiveMessage.data"); |
2573 | 0 | target = stream->WriteStringMaybeAliased( |
2574 | 0 | 2, this->_internal_data(), target); |
2575 | 0 | } |
2576 | |
|
2577 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
2578 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2579 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
2580 | 0 | } |
2581 | | // @@protoc_insertion_point(serialize_to_array_end:test.RecursiveMessage) |
2582 | 0 | return target; |
2583 | 0 | } |
2584 | | |
2585 | 0 | size_t RecursiveMessage::ByteSizeLong() const { |
2586 | | // @@protoc_insertion_point(message_byte_size_start:test.RecursiveMessage) |
2587 | 0 | size_t total_size = 0; |
2588 | |
|
2589 | 0 | uint32_t cached_has_bits = 0; |
2590 | | // Prevent compiler warnings about cached_has_bits being unused |
2591 | 0 | (void) cached_has_bits; |
2592 | |
|
2593 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2594 | 0 | if (cached_has_bits & 0x00000003u) { |
2595 | | // optional string data = 2; |
2596 | 0 | if (cached_has_bits & 0x00000001u) { |
2597 | 0 | total_size += 1 + |
2598 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2599 | 0 | this->_internal_data()); |
2600 | 0 | } |
2601 | | |
2602 | | // optional .test.RecursiveMessage child = 1; |
2603 | 0 | if (cached_has_bits & 0x00000002u) { |
2604 | 0 | total_size += 1 + |
2605 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2606 | 0 | *_impl_.child_); |
2607 | 0 | } |
2608 | |
|
2609 | 0 | } |
2610 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
2611 | 0 | } |
2612 | | |
2613 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RecursiveMessage::_class_data_ = { |
2614 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
2615 | | RecursiveMessage::MergeImpl |
2616 | | }; |
2617 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RecursiveMessage::GetClassData() const { return &_class_data_; } |
2618 | | |
2619 | | |
2620 | 0 | void RecursiveMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
2621 | 0 | auto* const _this = static_cast<RecursiveMessage*>(&to_msg); |
2622 | 0 | auto& from = static_cast<const RecursiveMessage&>(from_msg); |
2623 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.RecursiveMessage) |
2624 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
2625 | 0 | uint32_t cached_has_bits = 0; |
2626 | 0 | (void) cached_has_bits; |
2627 | |
|
2628 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
2629 | 0 | if (cached_has_bits & 0x00000003u) { |
2630 | 0 | if (cached_has_bits & 0x00000001u) { |
2631 | 0 | _this->_internal_set_data(from._internal_data()); |
2632 | 0 | } |
2633 | 0 | if (cached_has_bits & 0x00000002u) { |
2634 | 0 | _this->_internal_mutable_child()->::test::RecursiveMessage::MergeFrom( |
2635 | 0 | from._internal_child()); |
2636 | 0 | } |
2637 | 0 | } |
2638 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2639 | 0 | } |
2640 | | |
2641 | 0 | void RecursiveMessage::CopyFrom(const RecursiveMessage& from) { |
2642 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.RecursiveMessage) |
2643 | 0 | if (&from == this) return; |
2644 | 0 | Clear(); |
2645 | 0 | MergeFrom(from); |
2646 | 0 | } |
2647 | | |
2648 | 0 | bool RecursiveMessage::IsInitialized() const { |
2649 | 0 | return true; |
2650 | 0 | } |
2651 | | |
2652 | 0 | void RecursiveMessage::InternalSwap(RecursiveMessage* other) { |
2653 | 0 | using std::swap; |
2654 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
2655 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
2656 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2657 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2658 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
2659 | 0 | &_impl_.data_, lhs_arena, |
2660 | 0 | &other->_impl_.data_, rhs_arena |
2661 | 0 | ); |
2662 | 0 | swap(_impl_.child_, other->_impl_.child_); |
2663 | 0 | } |
2664 | | |
2665 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata RecursiveMessage::GetMetadata() const { |
2666 | 0 | return ::_pbi::AssignDescriptors( |
2667 | 0 | &descriptor_table_echo_2eproto_getter, &descriptor_table_echo_2eproto_once, |
2668 | 0 | file_level_metadata_echo_2eproto[10]); |
2669 | 0 | } |
2670 | | |
2671 | | // =================================================================== |
2672 | | |
2673 | 0 | EchoService::~EchoService() {} |
2674 | | |
2675 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* EchoService::descriptor() { |
2676 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
2677 | 0 | return file_level_service_descriptors_echo_2eproto[0]; |
2678 | 0 | } |
2679 | | |
2680 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* EchoService::GetDescriptor() { |
2681 | 0 | return descriptor(); |
2682 | 0 | } |
2683 | | |
2684 | | void EchoService::Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2685 | | const ::test::EchoRequest*, |
2686 | | ::test::EchoResponse*, |
2687 | 0 | ::google::protobuf::Closure* done) { |
2688 | 0 | controller->SetFailed("Method Echo() not implemented."); |
2689 | 0 | done->Run(); |
2690 | 0 | } |
2691 | | |
2692 | | void EchoService::ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2693 | | const ::test::ComboRequest*, |
2694 | | ::test::ComboResponse*, |
2695 | 0 | ::google::protobuf::Closure* done) { |
2696 | 0 | controller->SetFailed("Method ComboEcho() not implemented."); |
2697 | 0 | done->Run(); |
2698 | 0 | } |
2699 | | |
2700 | | void EchoService::BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2701 | | const ::test::BytesRequest*, |
2702 | | ::test::BytesResponse*, |
2703 | 0 | ::google::protobuf::Closure* done) { |
2704 | 0 | controller->SetFailed("Method BytesEcho1() not implemented."); |
2705 | 0 | done->Run(); |
2706 | 0 | } |
2707 | | |
2708 | | void EchoService::BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2709 | | const ::test::BytesRequest*, |
2710 | | ::test::BytesResponse*, |
2711 | 0 | ::google::protobuf::Closure* done) { |
2712 | 0 | controller->SetFailed("Method BytesEcho2() not implemented."); |
2713 | 0 | done->Run(); |
2714 | 0 | } |
2715 | | |
2716 | | void EchoService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2717 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2718 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2719 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2720 | 0 | ::google::protobuf::Closure* done) { |
2721 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[0]); |
2722 | 0 | switch(method->index()) { |
2723 | 0 | case 0: |
2724 | 0 | Echo(controller, |
2725 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::EchoRequest*>( |
2726 | 0 | request), |
2727 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::EchoResponse*>( |
2728 | 0 | response), |
2729 | 0 | done); |
2730 | 0 | break; |
2731 | 0 | case 1: |
2732 | 0 | ComboEcho(controller, |
2733 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::ComboRequest*>( |
2734 | 0 | request), |
2735 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::ComboResponse*>( |
2736 | 0 | response), |
2737 | 0 | done); |
2738 | 0 | break; |
2739 | 0 | case 2: |
2740 | 0 | BytesEcho1(controller, |
2741 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::BytesRequest*>( |
2742 | 0 | request), |
2743 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::BytesResponse*>( |
2744 | 0 | response), |
2745 | 0 | done); |
2746 | 0 | break; |
2747 | 0 | case 3: |
2748 | 0 | BytesEcho2(controller, |
2749 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::BytesRequest*>( |
2750 | 0 | request), |
2751 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::BytesResponse*>( |
2752 | 0 | response), |
2753 | 0 | done); |
2754 | 0 | break; |
2755 | 0 | default: |
2756 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2757 | 0 | break; |
2758 | 0 | } |
2759 | 0 | } |
2760 | | |
2761 | | const ::PROTOBUF_NAMESPACE_ID::Message& EchoService::GetRequestPrototype( |
2762 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
2763 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
2764 | 0 | switch(method->index()) { |
2765 | 0 | case 0: |
2766 | 0 | return ::test::EchoRequest::default_instance(); |
2767 | 0 | case 1: |
2768 | 0 | return ::test::ComboRequest::default_instance(); |
2769 | 0 | case 2: |
2770 | 0 | return ::test::BytesRequest::default_instance(); |
2771 | 0 | case 3: |
2772 | 0 | return ::test::BytesRequest::default_instance(); |
2773 | 0 | default: |
2774 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2775 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
2776 | 0 | ->GetPrototype(method->input_type()); |
2777 | 0 | } |
2778 | 0 | } |
2779 | | |
2780 | | const ::PROTOBUF_NAMESPACE_ID::Message& EchoService::GetResponsePrototype( |
2781 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
2782 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
2783 | 0 | switch(method->index()) { |
2784 | 0 | case 0: |
2785 | 0 | return ::test::EchoResponse::default_instance(); |
2786 | 0 | case 1: |
2787 | 0 | return ::test::ComboResponse::default_instance(); |
2788 | 0 | case 2: |
2789 | 0 | return ::test::BytesResponse::default_instance(); |
2790 | 0 | case 3: |
2791 | 0 | return ::test::BytesResponse::default_instance(); |
2792 | 0 | default: |
2793 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2794 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
2795 | 0 | ->GetPrototype(method->output_type()); |
2796 | 0 | } |
2797 | 0 | } |
2798 | | |
2799 | | EchoService_Stub::EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
2800 | 0 | : channel_(channel), owns_channel_(false) {} |
2801 | | EchoService_Stub::EchoService_Stub( |
2802 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2803 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
2804 | 0 | : channel_(channel), |
2805 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
2806 | 0 | EchoService_Stub::~EchoService_Stub() { |
2807 | 0 | if (owns_channel_) delete channel_; |
2808 | 0 | } |
2809 | | |
2810 | | void EchoService_Stub::Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2811 | | const ::test::EchoRequest* request, |
2812 | | ::test::EchoResponse* response, |
2813 | 0 | ::google::protobuf::Closure* done) { |
2814 | 0 | channel_->CallMethod(descriptor()->method(0), |
2815 | 0 | controller, request, response, done); |
2816 | 0 | } |
2817 | | void EchoService_Stub::ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2818 | | const ::test::ComboRequest* request, |
2819 | | ::test::ComboResponse* response, |
2820 | 0 | ::google::protobuf::Closure* done) { |
2821 | 0 | channel_->CallMethod(descriptor()->method(1), |
2822 | 0 | controller, request, response, done); |
2823 | 0 | } |
2824 | | void EchoService_Stub::BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2825 | | const ::test::BytesRequest* request, |
2826 | | ::test::BytesResponse* response, |
2827 | 0 | ::google::protobuf::Closure* done) { |
2828 | 0 | channel_->CallMethod(descriptor()->method(2), |
2829 | 0 | controller, request, response, done); |
2830 | 0 | } |
2831 | | void EchoService_Stub::BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2832 | | const ::test::BytesRequest* request, |
2833 | | ::test::BytesResponse* response, |
2834 | 0 | ::google::protobuf::Closure* done) { |
2835 | 0 | channel_->CallMethod(descriptor()->method(3), |
2836 | 0 | controller, request, response, done); |
2837 | 0 | } |
2838 | | // =================================================================== |
2839 | | |
2840 | 0 | DownloadService::~DownloadService() {} |
2841 | | |
2842 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DownloadService::descriptor() { |
2843 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
2844 | 0 | return file_level_service_descriptors_echo_2eproto[1]; |
2845 | 0 | } |
2846 | | |
2847 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DownloadService::GetDescriptor() { |
2848 | 0 | return descriptor(); |
2849 | 0 | } |
2850 | | |
2851 | | void DownloadService::Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2852 | | const ::test::HttpRequest*, |
2853 | | ::test::HttpResponse*, |
2854 | 0 | ::google::protobuf::Closure* done) { |
2855 | 0 | controller->SetFailed("Method Download() not implemented."); |
2856 | 0 | done->Run(); |
2857 | 0 | } |
2858 | | |
2859 | | void DownloadService::DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2860 | | const ::test::HttpRequest*, |
2861 | | ::test::HttpResponse*, |
2862 | 0 | ::google::protobuf::Closure* done) { |
2863 | 0 | controller->SetFailed("Method DownloadFailed() not implemented."); |
2864 | 0 | done->Run(); |
2865 | 0 | } |
2866 | | |
2867 | | void DownloadService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2868 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2869 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2870 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2871 | 0 | ::google::protobuf::Closure* done) { |
2872 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[1]); |
2873 | 0 | switch(method->index()) { |
2874 | 0 | case 0: |
2875 | 0 | Download(controller, |
2876 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
2877 | 0 | request), |
2878 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
2879 | 0 | response), |
2880 | 0 | done); |
2881 | 0 | break; |
2882 | 0 | case 1: |
2883 | 0 | DownloadFailed(controller, |
2884 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
2885 | 0 | request), |
2886 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
2887 | 0 | response), |
2888 | 0 | done); |
2889 | 0 | break; |
2890 | 0 | default: |
2891 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2892 | 0 | break; |
2893 | 0 | } |
2894 | 0 | } |
2895 | | |
2896 | | const ::PROTOBUF_NAMESPACE_ID::Message& DownloadService::GetRequestPrototype( |
2897 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
2898 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
2899 | 0 | switch(method->index()) { |
2900 | 0 | case 0: |
2901 | 0 | return ::test::HttpRequest::default_instance(); |
2902 | 0 | case 1: |
2903 | 0 | return ::test::HttpRequest::default_instance(); |
2904 | 0 | default: |
2905 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2906 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
2907 | 0 | ->GetPrototype(method->input_type()); |
2908 | 0 | } |
2909 | 0 | } |
2910 | | |
2911 | | const ::PROTOBUF_NAMESPACE_ID::Message& DownloadService::GetResponsePrototype( |
2912 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
2913 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
2914 | 0 | switch(method->index()) { |
2915 | 0 | case 0: |
2916 | 0 | return ::test::HttpResponse::default_instance(); |
2917 | 0 | case 1: |
2918 | 0 | return ::test::HttpResponse::default_instance(); |
2919 | 0 | default: |
2920 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
2921 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
2922 | 0 | ->GetPrototype(method->output_type()); |
2923 | 0 | } |
2924 | 0 | } |
2925 | | |
2926 | | DownloadService_Stub::DownloadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
2927 | 0 | : channel_(channel), owns_channel_(false) {} |
2928 | | DownloadService_Stub::DownloadService_Stub( |
2929 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2930 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
2931 | 0 | : channel_(channel), |
2932 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
2933 | 0 | DownloadService_Stub::~DownloadService_Stub() { |
2934 | 0 | if (owns_channel_) delete channel_; |
2935 | 0 | } |
2936 | | |
2937 | | void DownloadService_Stub::Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2938 | | const ::test::HttpRequest* request, |
2939 | | ::test::HttpResponse* response, |
2940 | 0 | ::google::protobuf::Closure* done) { |
2941 | 0 | channel_->CallMethod(descriptor()->method(0), |
2942 | 0 | controller, request, response, done); |
2943 | 0 | } |
2944 | | void DownloadService_Stub::DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2945 | | const ::test::HttpRequest* request, |
2946 | | ::test::HttpResponse* response, |
2947 | 0 | ::google::protobuf::Closure* done) { |
2948 | 0 | channel_->CallMethod(descriptor()->method(1), |
2949 | 0 | controller, request, response, done); |
2950 | 0 | } |
2951 | | // =================================================================== |
2952 | | |
2953 | 0 | UploadService::~UploadService() {} |
2954 | | |
2955 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UploadService::descriptor() { |
2956 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
2957 | 0 | return file_level_service_descriptors_echo_2eproto[2]; |
2958 | 0 | } |
2959 | | |
2960 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UploadService::GetDescriptor() { |
2961 | 0 | return descriptor(); |
2962 | 0 | } |
2963 | | |
2964 | | void UploadService::Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2965 | | const ::test::HttpRequest*, |
2966 | | ::test::HttpResponse*, |
2967 | 0 | ::google::protobuf::Closure* done) { |
2968 | 0 | controller->SetFailed("Method Upload() not implemented."); |
2969 | 0 | done->Run(); |
2970 | 0 | } |
2971 | | |
2972 | | void UploadService::UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2973 | | const ::test::HttpRequest*, |
2974 | | ::test::HttpResponse*, |
2975 | 0 | ::google::protobuf::Closure* done) { |
2976 | 0 | controller->SetFailed("Method UploadFailed() not implemented."); |
2977 | 0 | done->Run(); |
2978 | 0 | } |
2979 | | |
2980 | | void UploadService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2981 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2982 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2983 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2984 | 0 | ::google::protobuf::Closure* done) { |
2985 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[2]); |
2986 | 0 | switch(method->index()) { |
2987 | 0 | case 0: |
2988 | 0 | Upload(controller, |
2989 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
2990 | 0 | request), |
2991 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
2992 | 0 | response), |
2993 | 0 | done); |
2994 | 0 | break; |
2995 | 0 | case 1: |
2996 | 0 | UploadFailed(controller, |
2997 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
2998 | 0 | request), |
2999 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3000 | 0 | response), |
3001 | 0 | done); |
3002 | 0 | break; |
3003 | 0 | default: |
3004 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3005 | 0 | break; |
3006 | 0 | } |
3007 | 0 | } |
3008 | | |
3009 | | const ::PROTOBUF_NAMESPACE_ID::Message& UploadService::GetRequestPrototype( |
3010 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3011 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3012 | 0 | switch(method->index()) { |
3013 | 0 | case 0: |
3014 | 0 | return ::test::HttpRequest::default_instance(); |
3015 | 0 | case 1: |
3016 | 0 | return ::test::HttpRequest::default_instance(); |
3017 | 0 | default: |
3018 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3019 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3020 | 0 | ->GetPrototype(method->input_type()); |
3021 | 0 | } |
3022 | 0 | } |
3023 | | |
3024 | | const ::PROTOBUF_NAMESPACE_ID::Message& UploadService::GetResponsePrototype( |
3025 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3026 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3027 | 0 | switch(method->index()) { |
3028 | 0 | case 0: |
3029 | 0 | return ::test::HttpResponse::default_instance(); |
3030 | 0 | case 1: |
3031 | 0 | return ::test::HttpResponse::default_instance(); |
3032 | 0 | default: |
3033 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3034 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3035 | 0 | ->GetPrototype(method->output_type()); |
3036 | 0 | } |
3037 | 0 | } |
3038 | | |
3039 | | UploadService_Stub::UploadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
3040 | 0 | : channel_(channel), owns_channel_(false) {} |
3041 | | UploadService_Stub::UploadService_Stub( |
3042 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
3043 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
3044 | 0 | : channel_(channel), |
3045 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
3046 | 0 | UploadService_Stub::~UploadService_Stub() { |
3047 | 0 | if (owns_channel_) delete channel_; |
3048 | 0 | } |
3049 | | |
3050 | | void UploadService_Stub::Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3051 | | const ::test::HttpRequest* request, |
3052 | | ::test::HttpResponse* response, |
3053 | 0 | ::google::protobuf::Closure* done) { |
3054 | 0 | channel_->CallMethod(descriptor()->method(0), |
3055 | 0 | controller, request, response, done); |
3056 | 0 | } |
3057 | | void UploadService_Stub::UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3058 | | const ::test::HttpRequest* request, |
3059 | | ::test::HttpResponse* response, |
3060 | 0 | ::google::protobuf::Closure* done) { |
3061 | 0 | channel_->CallMethod(descriptor()->method(1), |
3062 | 0 | controller, request, response, done); |
3063 | 0 | } |
3064 | | // =================================================================== |
3065 | | |
3066 | 0 | UserNamingService::~UserNamingService() {} |
3067 | | |
3068 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UserNamingService::descriptor() { |
3069 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
3070 | 0 | return file_level_service_descriptors_echo_2eproto[3]; |
3071 | 0 | } |
3072 | | |
3073 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* UserNamingService::GetDescriptor() { |
3074 | 0 | return descriptor(); |
3075 | 0 | } |
3076 | | |
3077 | | void UserNamingService::ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3078 | | const ::test::HttpRequest*, |
3079 | | ::test::HttpResponse*, |
3080 | 0 | ::google::protobuf::Closure* done) { |
3081 | 0 | controller->SetFailed("Method ListNames() not implemented."); |
3082 | 0 | done->Run(); |
3083 | 0 | } |
3084 | | |
3085 | | void UserNamingService::Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3086 | | const ::test::HttpRequest*, |
3087 | | ::test::HttpResponse*, |
3088 | 0 | ::google::protobuf::Closure* done) { |
3089 | 0 | controller->SetFailed("Method Touch() not implemented."); |
3090 | 0 | done->Run(); |
3091 | 0 | } |
3092 | | |
3093 | | void UserNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
3094 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3095 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
3096 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
3097 | 0 | ::google::protobuf::Closure* done) { |
3098 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[3]); |
3099 | 0 | switch(method->index()) { |
3100 | 0 | case 0: |
3101 | 0 | ListNames(controller, |
3102 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3103 | 0 | request), |
3104 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3105 | 0 | response), |
3106 | 0 | done); |
3107 | 0 | break; |
3108 | 0 | case 1: |
3109 | 0 | Touch(controller, |
3110 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3111 | 0 | request), |
3112 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3113 | 0 | response), |
3114 | 0 | done); |
3115 | 0 | break; |
3116 | 0 | default: |
3117 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3118 | 0 | break; |
3119 | 0 | } |
3120 | 0 | } |
3121 | | |
3122 | | const ::PROTOBUF_NAMESPACE_ID::Message& UserNamingService::GetRequestPrototype( |
3123 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3124 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3125 | 0 | switch(method->index()) { |
3126 | 0 | case 0: |
3127 | 0 | return ::test::HttpRequest::default_instance(); |
3128 | 0 | case 1: |
3129 | 0 | return ::test::HttpRequest::default_instance(); |
3130 | 0 | default: |
3131 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3132 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3133 | 0 | ->GetPrototype(method->input_type()); |
3134 | 0 | } |
3135 | 0 | } |
3136 | | |
3137 | | const ::PROTOBUF_NAMESPACE_ID::Message& UserNamingService::GetResponsePrototype( |
3138 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3139 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3140 | 0 | switch(method->index()) { |
3141 | 0 | case 0: |
3142 | 0 | return ::test::HttpResponse::default_instance(); |
3143 | 0 | case 1: |
3144 | 0 | return ::test::HttpResponse::default_instance(); |
3145 | 0 | default: |
3146 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3147 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3148 | 0 | ->GetPrototype(method->output_type()); |
3149 | 0 | } |
3150 | 0 | } |
3151 | | |
3152 | | UserNamingService_Stub::UserNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
3153 | 0 | : channel_(channel), owns_channel_(false) {} |
3154 | | UserNamingService_Stub::UserNamingService_Stub( |
3155 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
3156 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
3157 | 0 | : channel_(channel), |
3158 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
3159 | 0 | UserNamingService_Stub::~UserNamingService_Stub() { |
3160 | 0 | if (owns_channel_) delete channel_; |
3161 | 0 | } |
3162 | | |
3163 | | void UserNamingService_Stub::ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3164 | | const ::test::HttpRequest* request, |
3165 | | ::test::HttpResponse* response, |
3166 | 0 | ::google::protobuf::Closure* done) { |
3167 | 0 | channel_->CallMethod(descriptor()->method(0), |
3168 | 0 | controller, request, response, done); |
3169 | 0 | } |
3170 | | void UserNamingService_Stub::Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3171 | | const ::test::HttpRequest* request, |
3172 | | ::test::HttpResponse* response, |
3173 | 0 | ::google::protobuf::Closure* done) { |
3174 | 0 | channel_->CallMethod(descriptor()->method(1), |
3175 | 0 | controller, request, response, done); |
3176 | 0 | } |
3177 | | // =================================================================== |
3178 | | |
3179 | 0 | DiscoveryNamingService::~DiscoveryNamingService() {} |
3180 | | |
3181 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DiscoveryNamingService::descriptor() { |
3182 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
3183 | 0 | return file_level_service_descriptors_echo_2eproto[4]; |
3184 | 0 | } |
3185 | | |
3186 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* DiscoveryNamingService::GetDescriptor() { |
3187 | 0 | return descriptor(); |
3188 | 0 | } |
3189 | | |
3190 | | void DiscoveryNamingService::Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3191 | | const ::test::HttpRequest*, |
3192 | | ::test::HttpResponse*, |
3193 | 0 | ::google::protobuf::Closure* done) { |
3194 | 0 | controller->SetFailed("Method Nodes() not implemented."); |
3195 | 0 | done->Run(); |
3196 | 0 | } |
3197 | | |
3198 | | void DiscoveryNamingService::Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3199 | | const ::test::HttpRequest*, |
3200 | | ::test::HttpResponse*, |
3201 | 0 | ::google::protobuf::Closure* done) { |
3202 | 0 | controller->SetFailed("Method Fetchs() not implemented."); |
3203 | 0 | done->Run(); |
3204 | 0 | } |
3205 | | |
3206 | | void DiscoveryNamingService::Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3207 | | const ::test::HttpRequest*, |
3208 | | ::test::HttpResponse*, |
3209 | 0 | ::google::protobuf::Closure* done) { |
3210 | 0 | controller->SetFailed("Method Register() not implemented."); |
3211 | 0 | done->Run(); |
3212 | 0 | } |
3213 | | |
3214 | | void DiscoveryNamingService::Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3215 | | const ::test::HttpRequest*, |
3216 | | ::test::HttpResponse*, |
3217 | 0 | ::google::protobuf::Closure* done) { |
3218 | 0 | controller->SetFailed("Method Renew() not implemented."); |
3219 | 0 | done->Run(); |
3220 | 0 | } |
3221 | | |
3222 | | void DiscoveryNamingService::Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3223 | | const ::test::HttpRequest*, |
3224 | | ::test::HttpResponse*, |
3225 | 0 | ::google::protobuf::Closure* done) { |
3226 | 0 | controller->SetFailed("Method Cancel() not implemented."); |
3227 | 0 | done->Run(); |
3228 | 0 | } |
3229 | | |
3230 | | void DiscoveryNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
3231 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3232 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
3233 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
3234 | 0 | ::google::protobuf::Closure* done) { |
3235 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[4]); |
3236 | 0 | switch(method->index()) { |
3237 | 0 | case 0: |
3238 | 0 | Nodes(controller, |
3239 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3240 | 0 | request), |
3241 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3242 | 0 | response), |
3243 | 0 | done); |
3244 | 0 | break; |
3245 | 0 | case 1: |
3246 | 0 | Fetchs(controller, |
3247 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3248 | 0 | request), |
3249 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3250 | 0 | response), |
3251 | 0 | done); |
3252 | 0 | break; |
3253 | 0 | case 2: |
3254 | 0 | Register(controller, |
3255 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3256 | 0 | request), |
3257 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3258 | 0 | response), |
3259 | 0 | done); |
3260 | 0 | break; |
3261 | 0 | case 3: |
3262 | 0 | Renew(controller, |
3263 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3264 | 0 | request), |
3265 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3266 | 0 | response), |
3267 | 0 | done); |
3268 | 0 | break; |
3269 | 0 | case 4: |
3270 | 0 | Cancel(controller, |
3271 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3272 | 0 | request), |
3273 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3274 | 0 | response), |
3275 | 0 | done); |
3276 | 0 | break; |
3277 | 0 | default: |
3278 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3279 | 0 | break; |
3280 | 0 | } |
3281 | 0 | } |
3282 | | |
3283 | | const ::PROTOBUF_NAMESPACE_ID::Message& DiscoveryNamingService::GetRequestPrototype( |
3284 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3285 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3286 | 0 | switch(method->index()) { |
3287 | 0 | case 0: |
3288 | 0 | return ::test::HttpRequest::default_instance(); |
3289 | 0 | case 1: |
3290 | 0 | return ::test::HttpRequest::default_instance(); |
3291 | 0 | case 2: |
3292 | 0 | return ::test::HttpRequest::default_instance(); |
3293 | 0 | case 3: |
3294 | 0 | return ::test::HttpRequest::default_instance(); |
3295 | 0 | case 4: |
3296 | 0 | return ::test::HttpRequest::default_instance(); |
3297 | 0 | default: |
3298 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3299 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3300 | 0 | ->GetPrototype(method->input_type()); |
3301 | 0 | } |
3302 | 0 | } |
3303 | | |
3304 | | const ::PROTOBUF_NAMESPACE_ID::Message& DiscoveryNamingService::GetResponsePrototype( |
3305 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3306 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3307 | 0 | switch(method->index()) { |
3308 | 0 | case 0: |
3309 | 0 | return ::test::HttpResponse::default_instance(); |
3310 | 0 | case 1: |
3311 | 0 | return ::test::HttpResponse::default_instance(); |
3312 | 0 | case 2: |
3313 | 0 | return ::test::HttpResponse::default_instance(); |
3314 | 0 | case 3: |
3315 | 0 | return ::test::HttpResponse::default_instance(); |
3316 | 0 | case 4: |
3317 | 0 | return ::test::HttpResponse::default_instance(); |
3318 | 0 | default: |
3319 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3320 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3321 | 0 | ->GetPrototype(method->output_type()); |
3322 | 0 | } |
3323 | 0 | } |
3324 | | |
3325 | | DiscoveryNamingService_Stub::DiscoveryNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
3326 | 0 | : channel_(channel), owns_channel_(false) {} |
3327 | | DiscoveryNamingService_Stub::DiscoveryNamingService_Stub( |
3328 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
3329 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
3330 | 0 | : channel_(channel), |
3331 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
3332 | 0 | DiscoveryNamingService_Stub::~DiscoveryNamingService_Stub() { |
3333 | 0 | if (owns_channel_) delete channel_; |
3334 | 0 | } |
3335 | | |
3336 | | void DiscoveryNamingService_Stub::Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3337 | | const ::test::HttpRequest* request, |
3338 | | ::test::HttpResponse* response, |
3339 | 0 | ::google::protobuf::Closure* done) { |
3340 | 0 | channel_->CallMethod(descriptor()->method(0), |
3341 | 0 | controller, request, response, done); |
3342 | 0 | } |
3343 | | void DiscoveryNamingService_Stub::Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3344 | | const ::test::HttpRequest* request, |
3345 | | ::test::HttpResponse* response, |
3346 | 0 | ::google::protobuf::Closure* done) { |
3347 | 0 | channel_->CallMethod(descriptor()->method(1), |
3348 | 0 | controller, request, response, done); |
3349 | 0 | } |
3350 | | void DiscoveryNamingService_Stub::Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3351 | | const ::test::HttpRequest* request, |
3352 | | ::test::HttpResponse* response, |
3353 | 0 | ::google::protobuf::Closure* done) { |
3354 | 0 | channel_->CallMethod(descriptor()->method(2), |
3355 | 0 | controller, request, response, done); |
3356 | 0 | } |
3357 | | void DiscoveryNamingService_Stub::Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3358 | | const ::test::HttpRequest* request, |
3359 | | ::test::HttpResponse* response, |
3360 | 0 | ::google::protobuf::Closure* done) { |
3361 | 0 | channel_->CallMethod(descriptor()->method(3), |
3362 | 0 | controller, request, response, done); |
3363 | 0 | } |
3364 | | void DiscoveryNamingService_Stub::Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3365 | | const ::test::HttpRequest* request, |
3366 | | ::test::HttpResponse* response, |
3367 | 0 | ::google::protobuf::Closure* done) { |
3368 | 0 | channel_->CallMethod(descriptor()->method(4), |
3369 | 0 | controller, request, response, done); |
3370 | 0 | } |
3371 | | // =================================================================== |
3372 | | |
3373 | 0 | NacosNamingService::~NacosNamingService() {} |
3374 | | |
3375 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* NacosNamingService::descriptor() { |
3376 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
3377 | 0 | return file_level_service_descriptors_echo_2eproto[5]; |
3378 | 0 | } |
3379 | | |
3380 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* NacosNamingService::GetDescriptor() { |
3381 | 0 | return descriptor(); |
3382 | 0 | } |
3383 | | |
3384 | | void NacosNamingService::Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3385 | | const ::test::HttpRequest*, |
3386 | | ::test::HttpResponse*, |
3387 | 0 | ::google::protobuf::Closure* done) { |
3388 | 0 | controller->SetFailed("Method Login() not implemented."); |
3389 | 0 | done->Run(); |
3390 | 0 | } |
3391 | | |
3392 | | void NacosNamingService::List(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3393 | | const ::test::HttpRequest*, |
3394 | | ::test::HttpResponse*, |
3395 | 0 | ::google::protobuf::Closure* done) { |
3396 | 0 | controller->SetFailed("Method List() not implemented."); |
3397 | 0 | done->Run(); |
3398 | 0 | } |
3399 | | |
3400 | | void NacosNamingService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
3401 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3402 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
3403 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
3404 | 0 | ::google::protobuf::Closure* done) { |
3405 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[5]); |
3406 | 0 | switch(method->index()) { |
3407 | 0 | case 0: |
3408 | 0 | Login(controller, |
3409 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3410 | 0 | request), |
3411 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3412 | 0 | response), |
3413 | 0 | done); |
3414 | 0 | break; |
3415 | 0 | case 1: |
3416 | 0 | List(controller, |
3417 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3418 | 0 | request), |
3419 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3420 | 0 | response), |
3421 | 0 | done); |
3422 | 0 | break; |
3423 | 0 | default: |
3424 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3425 | 0 | break; |
3426 | 0 | } |
3427 | 0 | } |
3428 | | |
3429 | | const ::PROTOBUF_NAMESPACE_ID::Message& NacosNamingService::GetRequestPrototype( |
3430 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3431 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3432 | 0 | switch(method->index()) { |
3433 | 0 | case 0: |
3434 | 0 | return ::test::HttpRequest::default_instance(); |
3435 | 0 | case 1: |
3436 | 0 | return ::test::HttpRequest::default_instance(); |
3437 | 0 | default: |
3438 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3439 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3440 | 0 | ->GetPrototype(method->input_type()); |
3441 | 0 | } |
3442 | 0 | } |
3443 | | |
3444 | | const ::PROTOBUF_NAMESPACE_ID::Message& NacosNamingService::GetResponsePrototype( |
3445 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3446 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3447 | 0 | switch(method->index()) { |
3448 | 0 | case 0: |
3449 | 0 | return ::test::HttpResponse::default_instance(); |
3450 | 0 | case 1: |
3451 | 0 | return ::test::HttpResponse::default_instance(); |
3452 | 0 | default: |
3453 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3454 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3455 | 0 | ->GetPrototype(method->output_type()); |
3456 | 0 | } |
3457 | 0 | } |
3458 | | |
3459 | | NacosNamingService_Stub::NacosNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
3460 | 0 | : channel_(channel), owns_channel_(false) {} |
3461 | | NacosNamingService_Stub::NacosNamingService_Stub( |
3462 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
3463 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
3464 | 0 | : channel_(channel), |
3465 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
3466 | 0 | NacosNamingService_Stub::~NacosNamingService_Stub() { |
3467 | 0 | if (owns_channel_) delete channel_; |
3468 | 0 | } |
3469 | | |
3470 | | void NacosNamingService_Stub::Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3471 | | const ::test::HttpRequest* request, |
3472 | | ::test::HttpResponse* response, |
3473 | 0 | ::google::protobuf::Closure* done) { |
3474 | 0 | channel_->CallMethod(descriptor()->method(0), |
3475 | 0 | controller, request, response, done); |
3476 | 0 | } |
3477 | | void NacosNamingService_Stub::List(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3478 | | const ::test::HttpRequest* request, |
3479 | | ::test::HttpResponse* response, |
3480 | 0 | ::google::protobuf::Closure* done) { |
3481 | 0 | channel_->CallMethod(descriptor()->method(1), |
3482 | 0 | controller, request, response, done); |
3483 | 0 | } |
3484 | | // =================================================================== |
3485 | | |
3486 | 0 | HttpService::~HttpService() {} |
3487 | | |
3488 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpService::descriptor() { |
3489 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_echo_2eproto); |
3490 | 0 | return file_level_service_descriptors_echo_2eproto[6]; |
3491 | 0 | } |
3492 | | |
3493 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HttpService::GetDescriptor() { |
3494 | 0 | return descriptor(); |
3495 | 0 | } |
3496 | | |
3497 | | void HttpService::Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3498 | | const ::test::HttpRequest*, |
3499 | | ::test::HttpResponse*, |
3500 | 0 | ::google::protobuf::Closure* done) { |
3501 | 0 | controller->SetFailed("Method Head() not implemented."); |
3502 | 0 | done->Run(); |
3503 | 0 | } |
3504 | | |
3505 | | void HttpService::Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3506 | | const ::test::HttpRequest*, |
3507 | | ::test::HttpResponse*, |
3508 | 0 | ::google::protobuf::Closure* done) { |
3509 | 0 | controller->SetFailed("Method Expect() not implemented."); |
3510 | 0 | done->Run(); |
3511 | 0 | } |
3512 | | |
3513 | | void HttpService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
3514 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3515 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
3516 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
3517 | 0 | ::google::protobuf::Closure* done) { |
3518 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_echo_2eproto[6]); |
3519 | 0 | switch(method->index()) { |
3520 | 0 | case 0: |
3521 | 0 | Head(controller, |
3522 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3523 | 0 | request), |
3524 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3525 | 0 | response), |
3526 | 0 | done); |
3527 | 0 | break; |
3528 | 0 | case 1: |
3529 | 0 | Expect(controller, |
3530 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HttpRequest*>( |
3531 | 0 | request), |
3532 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HttpResponse*>( |
3533 | 0 | response), |
3534 | 0 | done); |
3535 | 0 | break; |
3536 | 0 | default: |
3537 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3538 | 0 | break; |
3539 | 0 | } |
3540 | 0 | } |
3541 | | |
3542 | | const ::PROTOBUF_NAMESPACE_ID::Message& HttpService::GetRequestPrototype( |
3543 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3544 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3545 | 0 | switch(method->index()) { |
3546 | 0 | case 0: |
3547 | 0 | return ::test::HttpRequest::default_instance(); |
3548 | 0 | case 1: |
3549 | 0 | return ::test::HttpRequest::default_instance(); |
3550 | 0 | default: |
3551 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3552 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3553 | 0 | ->GetPrototype(method->input_type()); |
3554 | 0 | } |
3555 | 0 | } |
3556 | | |
3557 | | const ::PROTOBUF_NAMESPACE_ID::Message& HttpService::GetResponsePrototype( |
3558 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
3559 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
3560 | 0 | switch(method->index()) { |
3561 | 0 | case 0: |
3562 | 0 | return ::test::HttpResponse::default_instance(); |
3563 | 0 | case 1: |
3564 | 0 | return ::test::HttpResponse::default_instance(); |
3565 | 0 | default: |
3566 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
3567 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
3568 | 0 | ->GetPrototype(method->output_type()); |
3569 | 0 | } |
3570 | 0 | } |
3571 | | |
3572 | | HttpService_Stub::HttpService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
3573 | 0 | : channel_(channel), owns_channel_(false) {} |
3574 | | HttpService_Stub::HttpService_Stub( |
3575 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
3576 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
3577 | 0 | : channel_(channel), |
3578 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
3579 | 0 | HttpService_Stub::~HttpService_Stub() { |
3580 | 0 | if (owns_channel_) delete channel_; |
3581 | 0 | } |
3582 | | |
3583 | | void HttpService_Stub::Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3584 | | const ::test::HttpRequest* request, |
3585 | | ::test::HttpResponse* response, |
3586 | 0 | ::google::protobuf::Closure* done) { |
3587 | 0 | channel_->CallMethod(descriptor()->method(0), |
3588 | 0 | controller, request, response, done); |
3589 | 0 | } |
3590 | | void HttpService_Stub::Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
3591 | | const ::test::HttpRequest* request, |
3592 | | ::test::HttpResponse* response, |
3593 | 0 | ::google::protobuf::Closure* done) { |
3594 | 0 | channel_->CallMethod(descriptor()->method(1), |
3595 | 0 | controller, request, response, done); |
3596 | 0 | } |
3597 | | |
3598 | | // @@protoc_insertion_point(namespace_scope) |
3599 | | } // namespace test |
3600 | | PROTOBUF_NAMESPACE_OPEN |
3601 | | template<> PROTOBUF_NOINLINE ::test::EchoRequest* |
3602 | 0 | Arena::CreateMaybeMessage< ::test::EchoRequest >(Arena* arena) { |
3603 | 0 | return Arena::CreateMessageInternal< ::test::EchoRequest >(arena); |
3604 | 0 | } |
3605 | | template<> PROTOBUF_NOINLINE ::test::EchoResponse* |
3606 | 0 | Arena::CreateMaybeMessage< ::test::EchoResponse >(Arena* arena) { |
3607 | 0 | return Arena::CreateMessageInternal< ::test::EchoResponse >(arena); |
3608 | 0 | } |
3609 | | template<> PROTOBUF_NOINLINE ::test::ComboRequest* |
3610 | 0 | Arena::CreateMaybeMessage< ::test::ComboRequest >(Arena* arena) { |
3611 | 0 | return Arena::CreateMessageInternal< ::test::ComboRequest >(arena); |
3612 | 0 | } |
3613 | | template<> PROTOBUF_NOINLINE ::test::BytesRequest* |
3614 | 0 | Arena::CreateMaybeMessage< ::test::BytesRequest >(Arena* arena) { |
3615 | 0 | return Arena::CreateMessageInternal< ::test::BytesRequest >(arena); |
3616 | 0 | } |
3617 | | template<> PROTOBUF_NOINLINE ::test::BytesResponse* |
3618 | 0 | Arena::CreateMaybeMessage< ::test::BytesResponse >(Arena* arena) { |
3619 | 0 | return Arena::CreateMessageInternal< ::test::BytesResponse >(arena); |
3620 | 0 | } |
3621 | | template<> PROTOBUF_NOINLINE ::test::ComboResponse* |
3622 | 0 | Arena::CreateMaybeMessage< ::test::ComboResponse >(Arena* arena) { |
3623 | 0 | return Arena::CreateMessageInternal< ::test::ComboResponse >(arena); |
3624 | 0 | } |
3625 | | template<> PROTOBUF_NOINLINE ::test::HttpRequest* |
3626 | 0 | Arena::CreateMaybeMessage< ::test::HttpRequest >(Arena* arena) { |
3627 | 0 | return Arena::CreateMessageInternal< ::test::HttpRequest >(arena); |
3628 | 0 | } |
3629 | | template<> PROTOBUF_NOINLINE ::test::HttpResponse* |
3630 | 0 | Arena::CreateMaybeMessage< ::test::HttpResponse >(Arena* arena) { |
3631 | 0 | return Arena::CreateMessageInternal< ::test::HttpResponse >(arena); |
3632 | 0 | } |
3633 | | template<> PROTOBUF_NOINLINE ::test::Message1* |
3634 | 0 | Arena::CreateMaybeMessage< ::test::Message1 >(Arena* arena) { |
3635 | 0 | return Arena::CreateMessageInternal< ::test::Message1 >(arena); |
3636 | 0 | } |
3637 | | template<> PROTOBUF_NOINLINE ::test::Message2* |
3638 | 0 | Arena::CreateMaybeMessage< ::test::Message2 >(Arena* arena) { |
3639 | 0 | return Arena::CreateMessageInternal< ::test::Message2 >(arena); |
3640 | 0 | } |
3641 | | template<> PROTOBUF_NOINLINE ::test::RecursiveMessage* |
3642 | 0 | Arena::CreateMaybeMessage< ::test::RecursiveMessage >(Arena* arena) { |
3643 | 0 | return Arena::CreateMessageInternal< ::test::RecursiveMessage >(arena); |
3644 | 0 | } |
3645 | | PROTOBUF_NAMESPACE_CLOSE |
3646 | | |
3647 | | // @@protoc_insertion_point(global_scope) |
3648 | | #include <google/protobuf/port_undef.inc> |