/src/brpc/build/test/grpc.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: grpc.proto |
3 | | |
4 | | #include "grpc.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 GrpcRequest::GrpcRequest( |
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_.timeout_us_)*/int64_t{0} |
30 | | , /*decltype(_impl_.gzip_)*/false |
31 | | , /*decltype(_impl_.return_error_)*/false} {} |
32 | | struct GrpcRequestDefaultTypeInternal { |
33 | | PROTOBUF_CONSTEXPR GrpcRequestDefaultTypeInternal() |
34 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
35 | 0 | ~GrpcRequestDefaultTypeInternal() {} |
36 | | union { |
37 | | GrpcRequest _instance; |
38 | | }; |
39 | | }; |
40 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcRequestDefaultTypeInternal _GrpcRequest_default_instance_; |
41 | | PROTOBUF_CONSTEXPR GrpcResponse::GrpcResponse( |
42 | | ::_pbi::ConstantInitialized): _impl_{ |
43 | | /*decltype(_impl_._has_bits_)*/{} |
44 | | , /*decltype(_impl_._cached_size_)*/{} |
45 | | , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} |
46 | | struct GrpcResponseDefaultTypeInternal { |
47 | | PROTOBUF_CONSTEXPR GrpcResponseDefaultTypeInternal() |
48 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
49 | 0 | ~GrpcResponseDefaultTypeInternal() {} |
50 | | union { |
51 | | GrpcResponse _instance; |
52 | | }; |
53 | | }; |
54 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GrpcResponseDefaultTypeInternal _GrpcResponse_default_instance_; |
55 | | } // namespace test |
56 | | static ::_pb::Metadata file_level_metadata_grpc_2eproto[2]; |
57 | | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_grpc_2eproto = nullptr; |
58 | | static const ::_pb::ServiceDescriptor* file_level_service_descriptors_grpc_2eproto[1]; |
59 | | |
60 | | const uint32_t TableStruct_grpc_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
61 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _impl_._has_bits_), |
62 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _internal_metadata_), |
63 | | ~0u, // no _extensions_ |
64 | | ~0u, // no _oneof_case_ |
65 | | ~0u, // no _weak_field_map_ |
66 | | ~0u, // no _inlined_string_donated_ |
67 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _impl_.message_), |
68 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _impl_.gzip_), |
69 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _impl_.return_error_), |
70 | | PROTOBUF_FIELD_OFFSET(::test::GrpcRequest, _impl_.timeout_us_), |
71 | | 0, |
72 | | 2, |
73 | | 3, |
74 | | 1, |
75 | | PROTOBUF_FIELD_OFFSET(::test::GrpcResponse, _impl_._has_bits_), |
76 | | PROTOBUF_FIELD_OFFSET(::test::GrpcResponse, _internal_metadata_), |
77 | | ~0u, // no _extensions_ |
78 | | ~0u, // no _oneof_case_ |
79 | | ~0u, // no _weak_field_map_ |
80 | | ~0u, // no _inlined_string_donated_ |
81 | | PROTOBUF_FIELD_OFFSET(::test::GrpcResponse, _impl_.message_), |
82 | | 0, |
83 | | }; |
84 | | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
85 | | { 0, 10, -1, sizeof(::test::GrpcRequest)}, |
86 | | { 14, 21, -1, sizeof(::test::GrpcResponse)}, |
87 | | }; |
88 | | |
89 | | static const ::_pb::Message* const file_default_instances[] = { |
90 | | &::test::_GrpcRequest_default_instance_._instance, |
91 | | &::test::_GrpcResponse_default_instance_._instance, |
92 | | }; |
93 | | |
94 | | const char descriptor_table_protodef_grpc_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
95 | | "\n\ngrpc.proto\022\004test\"V\n\013GrpcRequest\022\017\n\007mes" |
96 | | "sage\030\001 \002(\t\022\014\n\004gzip\030\002 \002(\010\022\024\n\014return_error" |
97 | | "\030\003 \002(\010\022\022\n\ntimeout_us\030\004 \001(\003\"\037\n\014GrpcRespon" |
98 | | "se\022\017\n\007message\030\001 \002(\t2\257\001\n\013GrpcService\022/\n\006M" |
99 | | "ethod\022\021.test.GrpcRequest\032\022.test.GrpcResp" |
100 | | "onse\0226\n\rMethodTimeOut\022\021.test.GrpcRequest" |
101 | | "\032\022.test.GrpcResponse\0227\n\016MethodNotExist\022\021" |
102 | | ".test.GrpcRequest\032\022.test.GrpcResponseB\003\200" |
103 | | "\001\001" |
104 | | ; |
105 | | static ::_pbi::once_flag descriptor_table_grpc_2eproto_once; |
106 | | const ::_pbi::DescriptorTable descriptor_table_grpc_2eproto = { |
107 | | false, false, 322, descriptor_table_protodef_grpc_2eproto, |
108 | | "grpc.proto", |
109 | | &descriptor_table_grpc_2eproto_once, nullptr, 0, 2, |
110 | | schemas, file_default_instances, TableStruct_grpc_2eproto::offsets, |
111 | | file_level_metadata_grpc_2eproto, file_level_enum_descriptors_grpc_2eproto, |
112 | | file_level_service_descriptors_grpc_2eproto, |
113 | | }; |
114 | 0 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_grpc_2eproto_getter() { |
115 | 0 | return &descriptor_table_grpc_2eproto; |
116 | 0 | } |
117 | | |
118 | | // Force running AddDescriptors() at dynamic initialization time. |
119 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_grpc_2eproto(&descriptor_table_grpc_2eproto); |
120 | | namespace test { |
121 | | |
122 | | // =================================================================== |
123 | | |
124 | | class GrpcRequest::_Internal { |
125 | | public: |
126 | | using HasBits = decltype(std::declval<GrpcRequest>()._impl_._has_bits_); |
127 | 0 | static void set_has_message(HasBits* has_bits) { |
128 | 0 | (*has_bits)[0] |= 1u; |
129 | 0 | } |
130 | 0 | static void set_has_gzip(HasBits* has_bits) { |
131 | 0 | (*has_bits)[0] |= 4u; |
132 | 0 | } |
133 | 0 | static void set_has_return_error(HasBits* has_bits) { |
134 | 0 | (*has_bits)[0] |= 8u; |
135 | 0 | } |
136 | 0 | static void set_has_timeout_us(HasBits* has_bits) { |
137 | 0 | (*has_bits)[0] |= 2u; |
138 | 0 | } |
139 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
140 | 0 | return ((has_bits[0] & 0x0000000d) ^ 0x0000000d) != 0; |
141 | 0 | } |
142 | | }; |
143 | | |
144 | | GrpcRequest::GrpcRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
145 | | bool is_message_owned) |
146 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
147 | 0 | SharedCtor(arena, is_message_owned); |
148 | | // @@protoc_insertion_point(arena_constructor:test.GrpcRequest) |
149 | 0 | } |
150 | | GrpcRequest::GrpcRequest(const GrpcRequest& from) |
151 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
152 | 0 | GrpcRequest* const _this = this; (void)_this; |
153 | 0 | new (&_impl_) Impl_{ |
154 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
155 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
156 | 0 | , decltype(_impl_.message_){} |
157 | 0 | , decltype(_impl_.timeout_us_){} |
158 | 0 | , decltype(_impl_.gzip_){} |
159 | 0 | , decltype(_impl_.return_error_){}}; |
160 | |
|
161 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
162 | 0 | _impl_.message_.InitDefault(); |
163 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
164 | | _impl_.message_.Set("", GetArenaForAllocation()); |
165 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
166 | 0 | if (from._internal_has_message()) { |
167 | 0 | _this->_impl_.message_.Set(from._internal_message(), |
168 | 0 | _this->GetArenaForAllocation()); |
169 | 0 | } |
170 | 0 | ::memcpy(&_impl_.timeout_us_, &from._impl_.timeout_us_, |
171 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&_impl_.return_error_) - |
172 | 0 | reinterpret_cast<char*>(&_impl_.timeout_us_)) + sizeof(_impl_.return_error_)); |
173 | | // @@protoc_insertion_point(copy_constructor:test.GrpcRequest) |
174 | 0 | } |
175 | | |
176 | | inline void GrpcRequest::SharedCtor( |
177 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
178 | 0 | (void)arena; |
179 | 0 | (void)is_message_owned; |
180 | 0 | new (&_impl_) Impl_{ |
181 | 0 | decltype(_impl_._has_bits_){} |
182 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
183 | 0 | , decltype(_impl_.message_){} |
184 | 0 | , decltype(_impl_.timeout_us_){int64_t{0}} |
185 | 0 | , decltype(_impl_.gzip_){false} |
186 | 0 | , decltype(_impl_.return_error_){false} |
187 | 0 | }; |
188 | 0 | _impl_.message_.InitDefault(); |
189 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
190 | | _impl_.message_.Set("", GetArenaForAllocation()); |
191 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
192 | 0 | } |
193 | | |
194 | 0 | GrpcRequest::~GrpcRequest() { |
195 | | // @@protoc_insertion_point(destructor:test.GrpcRequest) |
196 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
197 | 0 | (void)arena; |
198 | 0 | return; |
199 | 0 | } |
200 | 0 | SharedDtor(); |
201 | 0 | } |
202 | | |
203 | 0 | inline void GrpcRequest::SharedDtor() { |
204 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
205 | 0 | _impl_.message_.Destroy(); |
206 | 0 | } |
207 | | |
208 | 0 | void GrpcRequest::SetCachedSize(int size) const { |
209 | 0 | _impl_._cached_size_.Set(size); |
210 | 0 | } |
211 | | |
212 | 0 | void GrpcRequest::Clear() { |
213 | | // @@protoc_insertion_point(message_clear_start:test.GrpcRequest) |
214 | 0 | uint32_t cached_has_bits = 0; |
215 | | // Prevent compiler warnings about cached_has_bits being unused |
216 | 0 | (void) cached_has_bits; |
217 | |
|
218 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
219 | 0 | if (cached_has_bits & 0x00000001u) { |
220 | 0 | _impl_.message_.ClearNonDefaultToEmpty(); |
221 | 0 | } |
222 | 0 | if (cached_has_bits & 0x0000000eu) { |
223 | 0 | ::memset(&_impl_.timeout_us_, 0, static_cast<size_t>( |
224 | 0 | reinterpret_cast<char*>(&_impl_.return_error_) - |
225 | 0 | reinterpret_cast<char*>(&_impl_.timeout_us_)) + sizeof(_impl_.return_error_)); |
226 | 0 | } |
227 | 0 | _impl_._has_bits_.Clear(); |
228 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
229 | 0 | } |
230 | | |
231 | 0 | const char* GrpcRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
232 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
233 | 0 | _Internal::HasBits has_bits{}; |
234 | 0 | while (!ctx->Done(&ptr)) { |
235 | 0 | uint32_t tag; |
236 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
237 | 0 | switch (tag >> 3) { |
238 | | // required string message = 1; |
239 | 0 | case 1: |
240 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
241 | 0 | auto str = _internal_mutable_message(); |
242 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
243 | 0 | CHK_(ptr); |
244 | 0 | #ifndef NDEBUG |
245 | 0 | ::_pbi::VerifyUTF8(str, "test.GrpcRequest.message"); |
246 | 0 | #endif // !NDEBUG |
247 | 0 | } else |
248 | 0 | goto handle_unusual; |
249 | 0 | continue; |
250 | | // required bool gzip = 2; |
251 | 0 | case 2: |
252 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
253 | 0 | _Internal::set_has_gzip(&has_bits); |
254 | 0 | _impl_.gzip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
255 | 0 | CHK_(ptr); |
256 | 0 | } else |
257 | 0 | goto handle_unusual; |
258 | 0 | continue; |
259 | | // required bool return_error = 3; |
260 | 0 | case 3: |
261 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
262 | 0 | _Internal::set_has_return_error(&has_bits); |
263 | 0 | _impl_.return_error_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
264 | 0 | CHK_(ptr); |
265 | 0 | } else |
266 | 0 | goto handle_unusual; |
267 | 0 | continue; |
268 | | // optional int64 timeout_us = 4; |
269 | 0 | case 4: |
270 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { |
271 | 0 | _Internal::set_has_timeout_us(&has_bits); |
272 | 0 | _impl_.timeout_us_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
273 | 0 | CHK_(ptr); |
274 | 0 | } else |
275 | 0 | goto handle_unusual; |
276 | 0 | continue; |
277 | 0 | default: |
278 | 0 | goto handle_unusual; |
279 | 0 | } // switch |
280 | 0 | handle_unusual: |
281 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
282 | 0 | CHK_(ptr); |
283 | 0 | ctx->SetLastTag(tag); |
284 | 0 | goto message_done; |
285 | 0 | } |
286 | 0 | ptr = UnknownFieldParse( |
287 | 0 | tag, |
288 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
289 | 0 | ptr, ctx); |
290 | 0 | CHK_(ptr != nullptr); |
291 | 0 | } // while |
292 | 0 | message_done: |
293 | 0 | _impl_._has_bits_.Or(has_bits); |
294 | 0 | return ptr; |
295 | 0 | failure: |
296 | 0 | ptr = nullptr; |
297 | 0 | goto message_done; |
298 | 0 | #undef CHK_ |
299 | 0 | } |
300 | | |
301 | | uint8_t* GrpcRequest::_InternalSerialize( |
302 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
303 | | // @@protoc_insertion_point(serialize_to_array_start:test.GrpcRequest) |
304 | 0 | uint32_t cached_has_bits = 0; |
305 | 0 | (void) cached_has_bits; |
306 | |
|
307 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
308 | | // required string message = 1; |
309 | 0 | if (cached_has_bits & 0x00000001u) { |
310 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
311 | 0 | this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
312 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
313 | 0 | "test.GrpcRequest.message"); |
314 | 0 | target = stream->WriteStringMaybeAliased( |
315 | 0 | 1, this->_internal_message(), target); |
316 | 0 | } |
317 | | |
318 | | // required bool gzip = 2; |
319 | 0 | if (cached_has_bits & 0x00000004u) { |
320 | 0 | target = stream->EnsureSpace(target); |
321 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_gzip(), target); |
322 | 0 | } |
323 | | |
324 | | // required bool return_error = 3; |
325 | 0 | if (cached_has_bits & 0x00000008u) { |
326 | 0 | target = stream->EnsureSpace(target); |
327 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_return_error(), target); |
328 | 0 | } |
329 | | |
330 | | // optional int64 timeout_us = 4; |
331 | 0 | if (cached_has_bits & 0x00000002u) { |
332 | 0 | target = stream->EnsureSpace(target); |
333 | 0 | target = ::_pbi::WireFormatLite::WriteInt64ToArray(4, this->_internal_timeout_us(), target); |
334 | 0 | } |
335 | |
|
336 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
337 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
338 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
339 | 0 | } |
340 | | // @@protoc_insertion_point(serialize_to_array_end:test.GrpcRequest) |
341 | 0 | return target; |
342 | 0 | } |
343 | | |
344 | 0 | size_t GrpcRequest::RequiredFieldsByteSizeFallback() const { |
345 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:test.GrpcRequest) |
346 | 0 | size_t total_size = 0; |
347 | |
|
348 | 0 | if (_internal_has_message()) { |
349 | | // required string message = 1; |
350 | 0 | total_size += 1 + |
351 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
352 | 0 | this->_internal_message()); |
353 | 0 | } |
354 | |
|
355 | 0 | if (_internal_has_gzip()) { |
356 | | // required bool gzip = 2; |
357 | 0 | total_size += 1 + 1; |
358 | 0 | } |
359 | |
|
360 | 0 | if (_internal_has_return_error()) { |
361 | | // required bool return_error = 3; |
362 | 0 | total_size += 1 + 1; |
363 | 0 | } |
364 | |
|
365 | 0 | return total_size; |
366 | 0 | } |
367 | 0 | size_t GrpcRequest::ByteSizeLong() const { |
368 | | // @@protoc_insertion_point(message_byte_size_start:test.GrpcRequest) |
369 | 0 | size_t total_size = 0; |
370 | |
|
371 | 0 | if (((_impl_._has_bits_[0] & 0x0000000d) ^ 0x0000000d) == 0) { // All required fields are present. |
372 | | // required string message = 1; |
373 | 0 | total_size += 1 + |
374 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
375 | 0 | this->_internal_message()); |
376 | | |
377 | | // required bool gzip = 2; |
378 | 0 | total_size += 1 + 1; |
379 | | |
380 | | // required bool return_error = 3; |
381 | 0 | total_size += 1 + 1; |
382 | |
|
383 | 0 | } else { |
384 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
385 | 0 | } |
386 | 0 | uint32_t cached_has_bits = 0; |
387 | | // Prevent compiler warnings about cached_has_bits being unused |
388 | 0 | (void) cached_has_bits; |
389 | | |
390 | | // optional int64 timeout_us = 4; |
391 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
392 | 0 | if (cached_has_bits & 0x00000002u) { |
393 | 0 | total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timeout_us()); |
394 | 0 | } |
395 | |
|
396 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
397 | 0 | } |
398 | | |
399 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrpcRequest::_class_data_ = { |
400 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
401 | | GrpcRequest::MergeImpl |
402 | | }; |
403 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrpcRequest::GetClassData() const { return &_class_data_; } |
404 | | |
405 | | |
406 | 0 | void GrpcRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
407 | 0 | auto* const _this = static_cast<GrpcRequest*>(&to_msg); |
408 | 0 | auto& from = static_cast<const GrpcRequest&>(from_msg); |
409 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.GrpcRequest) |
410 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
411 | 0 | uint32_t cached_has_bits = 0; |
412 | 0 | (void) cached_has_bits; |
413 | |
|
414 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
415 | 0 | if (cached_has_bits & 0x0000000fu) { |
416 | 0 | if (cached_has_bits & 0x00000001u) { |
417 | 0 | _this->_internal_set_message(from._internal_message()); |
418 | 0 | } |
419 | 0 | if (cached_has_bits & 0x00000002u) { |
420 | 0 | _this->_impl_.timeout_us_ = from._impl_.timeout_us_; |
421 | 0 | } |
422 | 0 | if (cached_has_bits & 0x00000004u) { |
423 | 0 | _this->_impl_.gzip_ = from._impl_.gzip_; |
424 | 0 | } |
425 | 0 | if (cached_has_bits & 0x00000008u) { |
426 | 0 | _this->_impl_.return_error_ = from._impl_.return_error_; |
427 | 0 | } |
428 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
429 | 0 | } |
430 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
431 | 0 | } |
432 | | |
433 | 0 | void GrpcRequest::CopyFrom(const GrpcRequest& from) { |
434 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.GrpcRequest) |
435 | 0 | if (&from == this) return; |
436 | 0 | Clear(); |
437 | 0 | MergeFrom(from); |
438 | 0 | } |
439 | | |
440 | 0 | bool GrpcRequest::IsInitialized() const { |
441 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
442 | 0 | return true; |
443 | 0 | } |
444 | | |
445 | 0 | void GrpcRequest::InternalSwap(GrpcRequest* other) { |
446 | 0 | using std::swap; |
447 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
448 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
449 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
450 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
451 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
452 | 0 | &_impl_.message_, lhs_arena, |
453 | 0 | &other->_impl_.message_, rhs_arena |
454 | 0 | ); |
455 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
456 | 0 | PROTOBUF_FIELD_OFFSET(GrpcRequest, _impl_.return_error_) |
457 | 0 | + sizeof(GrpcRequest::_impl_.return_error_) |
458 | 0 | - PROTOBUF_FIELD_OFFSET(GrpcRequest, _impl_.timeout_us_)>( |
459 | 0 | reinterpret_cast<char*>(&_impl_.timeout_us_), |
460 | 0 | reinterpret_cast<char*>(&other->_impl_.timeout_us_)); |
461 | 0 | } |
462 | | |
463 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata GrpcRequest::GetMetadata() const { |
464 | 0 | return ::_pbi::AssignDescriptors( |
465 | 0 | &descriptor_table_grpc_2eproto_getter, &descriptor_table_grpc_2eproto_once, |
466 | 0 | file_level_metadata_grpc_2eproto[0]); |
467 | 0 | } |
468 | | |
469 | | // =================================================================== |
470 | | |
471 | | class GrpcResponse::_Internal { |
472 | | public: |
473 | | using HasBits = decltype(std::declval<GrpcResponse>()._impl_._has_bits_); |
474 | 0 | static void set_has_message(HasBits* has_bits) { |
475 | 0 | (*has_bits)[0] |= 1u; |
476 | 0 | } |
477 | 0 | static bool MissingRequiredFields(const HasBits& has_bits) { |
478 | 0 | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
479 | 0 | } |
480 | | }; |
481 | | |
482 | | GrpcResponse::GrpcResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
483 | | bool is_message_owned) |
484 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
485 | 0 | SharedCtor(arena, is_message_owned); |
486 | | // @@protoc_insertion_point(arena_constructor:test.GrpcResponse) |
487 | 0 | } |
488 | | GrpcResponse::GrpcResponse(const GrpcResponse& from) |
489 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
490 | 0 | GrpcResponse* const _this = this; (void)_this; |
491 | 0 | new (&_impl_) Impl_{ |
492 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
493 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
494 | 0 | , decltype(_impl_.message_){}}; |
495 | |
|
496 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
497 | 0 | _impl_.message_.InitDefault(); |
498 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
499 | | _impl_.message_.Set("", GetArenaForAllocation()); |
500 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
501 | 0 | if (from._internal_has_message()) { |
502 | 0 | _this->_impl_.message_.Set(from._internal_message(), |
503 | 0 | _this->GetArenaForAllocation()); |
504 | 0 | } |
505 | | // @@protoc_insertion_point(copy_constructor:test.GrpcResponse) |
506 | 0 | } |
507 | | |
508 | | inline void GrpcResponse::SharedCtor( |
509 | 0 | ::_pb::Arena* arena, bool is_message_owned) { |
510 | 0 | (void)arena; |
511 | 0 | (void)is_message_owned; |
512 | 0 | new (&_impl_) Impl_{ |
513 | 0 | decltype(_impl_._has_bits_){} |
514 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
515 | 0 | , decltype(_impl_.message_){} |
516 | 0 | }; |
517 | 0 | _impl_.message_.InitDefault(); |
518 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
519 | | _impl_.message_.Set("", GetArenaForAllocation()); |
520 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
521 | 0 | } |
522 | | |
523 | 0 | GrpcResponse::~GrpcResponse() { |
524 | | // @@protoc_insertion_point(destructor:test.GrpcResponse) |
525 | 0 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
526 | 0 | (void)arena; |
527 | 0 | return; |
528 | 0 | } |
529 | 0 | SharedDtor(); |
530 | 0 | } |
531 | | |
532 | 0 | inline void GrpcResponse::SharedDtor() { |
533 | 0 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
534 | 0 | _impl_.message_.Destroy(); |
535 | 0 | } |
536 | | |
537 | 0 | void GrpcResponse::SetCachedSize(int size) const { |
538 | 0 | _impl_._cached_size_.Set(size); |
539 | 0 | } |
540 | | |
541 | 0 | void GrpcResponse::Clear() { |
542 | | // @@protoc_insertion_point(message_clear_start:test.GrpcResponse) |
543 | 0 | uint32_t cached_has_bits = 0; |
544 | | // Prevent compiler warnings about cached_has_bits being unused |
545 | 0 | (void) cached_has_bits; |
546 | |
|
547 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
548 | 0 | if (cached_has_bits & 0x00000001u) { |
549 | 0 | _impl_.message_.ClearNonDefaultToEmpty(); |
550 | 0 | } |
551 | 0 | _impl_._has_bits_.Clear(); |
552 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
553 | 0 | } |
554 | | |
555 | 0 | const char* GrpcResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
556 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
557 | 0 | _Internal::HasBits has_bits{}; |
558 | 0 | while (!ctx->Done(&ptr)) { |
559 | 0 | uint32_t tag; |
560 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
561 | 0 | switch (tag >> 3) { |
562 | | // required string message = 1; |
563 | 0 | case 1: |
564 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
565 | 0 | auto str = _internal_mutable_message(); |
566 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
567 | 0 | CHK_(ptr); |
568 | 0 | #ifndef NDEBUG |
569 | 0 | ::_pbi::VerifyUTF8(str, "test.GrpcResponse.message"); |
570 | 0 | #endif // !NDEBUG |
571 | 0 | } else |
572 | 0 | goto handle_unusual; |
573 | 0 | continue; |
574 | 0 | default: |
575 | 0 | goto handle_unusual; |
576 | 0 | } // switch |
577 | 0 | handle_unusual: |
578 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
579 | 0 | CHK_(ptr); |
580 | 0 | ctx->SetLastTag(tag); |
581 | 0 | goto message_done; |
582 | 0 | } |
583 | 0 | ptr = UnknownFieldParse( |
584 | 0 | tag, |
585 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
586 | 0 | ptr, ctx); |
587 | 0 | CHK_(ptr != nullptr); |
588 | 0 | } // while |
589 | 0 | message_done: |
590 | 0 | _impl_._has_bits_.Or(has_bits); |
591 | 0 | return ptr; |
592 | 0 | failure: |
593 | 0 | ptr = nullptr; |
594 | 0 | goto message_done; |
595 | 0 | #undef CHK_ |
596 | 0 | } |
597 | | |
598 | | uint8_t* GrpcResponse::_InternalSerialize( |
599 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
600 | | // @@protoc_insertion_point(serialize_to_array_start:test.GrpcResponse) |
601 | 0 | uint32_t cached_has_bits = 0; |
602 | 0 | (void) cached_has_bits; |
603 | |
|
604 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
605 | | // required string message = 1; |
606 | 0 | if (cached_has_bits & 0x00000001u) { |
607 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
608 | 0 | this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
609 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
610 | 0 | "test.GrpcResponse.message"); |
611 | 0 | target = stream->WriteStringMaybeAliased( |
612 | 0 | 1, this->_internal_message(), target); |
613 | 0 | } |
614 | |
|
615 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
616 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
617 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
618 | 0 | } |
619 | | // @@protoc_insertion_point(serialize_to_array_end:test.GrpcResponse) |
620 | 0 | return target; |
621 | 0 | } |
622 | | |
623 | 0 | size_t GrpcResponse::ByteSizeLong() const { |
624 | | // @@protoc_insertion_point(message_byte_size_start:test.GrpcResponse) |
625 | 0 | size_t total_size = 0; |
626 | | |
627 | | // required string message = 1; |
628 | 0 | if (_internal_has_message()) { |
629 | 0 | total_size += 1 + |
630 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
631 | 0 | this->_internal_message()); |
632 | 0 | } |
633 | 0 | uint32_t cached_has_bits = 0; |
634 | | // Prevent compiler warnings about cached_has_bits being unused |
635 | 0 | (void) cached_has_bits; |
636 | |
|
637 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
638 | 0 | } |
639 | | |
640 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GrpcResponse::_class_data_ = { |
641 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
642 | | GrpcResponse::MergeImpl |
643 | | }; |
644 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GrpcResponse::GetClassData() const { return &_class_data_; } |
645 | | |
646 | | |
647 | 0 | void GrpcResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
648 | 0 | auto* const _this = static_cast<GrpcResponse*>(&to_msg); |
649 | 0 | auto& from = static_cast<const GrpcResponse&>(from_msg); |
650 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.GrpcResponse) |
651 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
652 | 0 | uint32_t cached_has_bits = 0; |
653 | 0 | (void) cached_has_bits; |
654 | |
|
655 | 0 | if (from._internal_has_message()) { |
656 | 0 | _this->_internal_set_message(from._internal_message()); |
657 | 0 | } |
658 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
659 | 0 | } |
660 | | |
661 | 0 | void GrpcResponse::CopyFrom(const GrpcResponse& from) { |
662 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.GrpcResponse) |
663 | 0 | if (&from == this) return; |
664 | 0 | Clear(); |
665 | 0 | MergeFrom(from); |
666 | 0 | } |
667 | | |
668 | 0 | bool GrpcResponse::IsInitialized() const { |
669 | 0 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
670 | 0 | return true; |
671 | 0 | } |
672 | | |
673 | 0 | void GrpcResponse::InternalSwap(GrpcResponse* other) { |
674 | 0 | using std::swap; |
675 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
676 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
677 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
678 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
679 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
680 | 0 | &_impl_.message_, lhs_arena, |
681 | 0 | &other->_impl_.message_, rhs_arena |
682 | 0 | ); |
683 | 0 | } |
684 | | |
685 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata GrpcResponse::GetMetadata() const { |
686 | 0 | return ::_pbi::AssignDescriptors( |
687 | 0 | &descriptor_table_grpc_2eproto_getter, &descriptor_table_grpc_2eproto_once, |
688 | 0 | file_level_metadata_grpc_2eproto[1]); |
689 | 0 | } |
690 | | |
691 | | // =================================================================== |
692 | | |
693 | 0 | GrpcService::~GrpcService() {} |
694 | | |
695 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GrpcService::descriptor() { |
696 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_grpc_2eproto); |
697 | 0 | return file_level_service_descriptors_grpc_2eproto[0]; |
698 | 0 | } |
699 | | |
700 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GrpcService::GetDescriptor() { |
701 | 0 | return descriptor(); |
702 | 0 | } |
703 | | |
704 | | void GrpcService::Method(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
705 | | const ::test::GrpcRequest*, |
706 | | ::test::GrpcResponse*, |
707 | 0 | ::google::protobuf::Closure* done) { |
708 | 0 | controller->SetFailed("Method Method() not implemented."); |
709 | 0 | done->Run(); |
710 | 0 | } |
711 | | |
712 | | void GrpcService::MethodTimeOut(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
713 | | const ::test::GrpcRequest*, |
714 | | ::test::GrpcResponse*, |
715 | 0 | ::google::protobuf::Closure* done) { |
716 | 0 | controller->SetFailed("Method MethodTimeOut() not implemented."); |
717 | 0 | done->Run(); |
718 | 0 | } |
719 | | |
720 | | void GrpcService::MethodNotExist(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
721 | | const ::test::GrpcRequest*, |
722 | | ::test::GrpcResponse*, |
723 | 0 | ::google::protobuf::Closure* done) { |
724 | 0 | controller->SetFailed("Method MethodNotExist() not implemented."); |
725 | 0 | done->Run(); |
726 | 0 | } |
727 | | |
728 | | void GrpcService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
729 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
730 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
731 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
732 | 0 | ::google::protobuf::Closure* done) { |
733 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_grpc_2eproto[0]); |
734 | 0 | switch(method->index()) { |
735 | 0 | case 0: |
736 | 0 | Method(controller, |
737 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::GrpcRequest*>( |
738 | 0 | request), |
739 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::GrpcResponse*>( |
740 | 0 | response), |
741 | 0 | done); |
742 | 0 | break; |
743 | 0 | case 1: |
744 | 0 | MethodTimeOut(controller, |
745 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::GrpcRequest*>( |
746 | 0 | request), |
747 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::GrpcResponse*>( |
748 | 0 | response), |
749 | 0 | done); |
750 | 0 | break; |
751 | 0 | case 2: |
752 | 0 | MethodNotExist(controller, |
753 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::GrpcRequest*>( |
754 | 0 | request), |
755 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::GrpcResponse*>( |
756 | 0 | response), |
757 | 0 | done); |
758 | 0 | break; |
759 | 0 | default: |
760 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
761 | 0 | break; |
762 | 0 | } |
763 | 0 | } |
764 | | |
765 | | const ::PROTOBUF_NAMESPACE_ID::Message& GrpcService::GetRequestPrototype( |
766 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
767 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
768 | 0 | switch(method->index()) { |
769 | 0 | case 0: |
770 | 0 | return ::test::GrpcRequest::default_instance(); |
771 | 0 | case 1: |
772 | 0 | return ::test::GrpcRequest::default_instance(); |
773 | 0 | case 2: |
774 | 0 | return ::test::GrpcRequest::default_instance(); |
775 | 0 | default: |
776 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
777 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
778 | 0 | ->GetPrototype(method->input_type()); |
779 | 0 | } |
780 | 0 | } |
781 | | |
782 | | const ::PROTOBUF_NAMESPACE_ID::Message& GrpcService::GetResponsePrototype( |
783 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
784 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
785 | 0 | switch(method->index()) { |
786 | 0 | case 0: |
787 | 0 | return ::test::GrpcResponse::default_instance(); |
788 | 0 | case 1: |
789 | 0 | return ::test::GrpcResponse::default_instance(); |
790 | 0 | case 2: |
791 | 0 | return ::test::GrpcResponse::default_instance(); |
792 | 0 | default: |
793 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
794 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
795 | 0 | ->GetPrototype(method->output_type()); |
796 | 0 | } |
797 | 0 | } |
798 | | |
799 | | GrpcService_Stub::GrpcService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
800 | 0 | : channel_(channel), owns_channel_(false) {} |
801 | | GrpcService_Stub::GrpcService_Stub( |
802 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
803 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
804 | 0 | : channel_(channel), |
805 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
806 | 0 | GrpcService_Stub::~GrpcService_Stub() { |
807 | 0 | if (owns_channel_) delete channel_; |
808 | 0 | } |
809 | | |
810 | | void GrpcService_Stub::Method(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
811 | | const ::test::GrpcRequest* request, |
812 | | ::test::GrpcResponse* response, |
813 | 0 | ::google::protobuf::Closure* done) { |
814 | 0 | channel_->CallMethod(descriptor()->method(0), |
815 | 0 | controller, request, response, done); |
816 | 0 | } |
817 | | void GrpcService_Stub::MethodTimeOut(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
818 | | const ::test::GrpcRequest* request, |
819 | | ::test::GrpcResponse* response, |
820 | 0 | ::google::protobuf::Closure* done) { |
821 | 0 | channel_->CallMethod(descriptor()->method(1), |
822 | 0 | controller, request, response, done); |
823 | 0 | } |
824 | | void GrpcService_Stub::MethodNotExist(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
825 | | const ::test::GrpcRequest* request, |
826 | | ::test::GrpcResponse* response, |
827 | 0 | ::google::protobuf::Closure* done) { |
828 | 0 | channel_->CallMethod(descriptor()->method(2), |
829 | 0 | controller, request, response, done); |
830 | 0 | } |
831 | | |
832 | | // @@protoc_insertion_point(namespace_scope) |
833 | | } // namespace test |
834 | | PROTOBUF_NAMESPACE_OPEN |
835 | | template<> PROTOBUF_NOINLINE ::test::GrpcRequest* |
836 | 0 | Arena::CreateMaybeMessage< ::test::GrpcRequest >(Arena* arena) { |
837 | 0 | return Arena::CreateMessageInternal< ::test::GrpcRequest >(arena); |
838 | 0 | } |
839 | | template<> PROTOBUF_NOINLINE ::test::GrpcResponse* |
840 | 0 | Arena::CreateMaybeMessage< ::test::GrpcResponse >(Arena* arena) { |
841 | 0 | return Arena::CreateMessageInternal< ::test::GrpcResponse >(arena); |
842 | 0 | } |
843 | | PROTOBUF_NAMESPACE_CLOSE |
844 | | |
845 | | // @@protoc_insertion_point(global_scope) |
846 | | #include <google/protobuf/port_undef.inc> |