/src/brpc/build/test/health_check.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: health_check.proto |
3 | | |
4 | | #include "health_check.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/io/coded_stream.h> |
11 | | #include <google/protobuf/wire_format_lite_inl.h> |
12 | | #include <google/protobuf/descriptor.h> |
13 | | #include <google/protobuf/generated_message_reflection.h> |
14 | | #include <google/protobuf/reflection_ops.h> |
15 | | #include <google/protobuf/wire_format.h> |
16 | | // This is a temporary google only hack |
17 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
18 | | #include "third_party/protobuf/version.h" |
19 | | #endif |
20 | | // @@protoc_insertion_point(includes) |
21 | | |
22 | | namespace test { |
23 | | class HealthCheckRequestDefaultTypeInternal { |
24 | | public: |
25 | | ::google::protobuf::internal::ExplicitlyConstructed<HealthCheckRequest> |
26 | | _instance; |
27 | | } _HealthCheckRequest_default_instance_; |
28 | | class HealthCheckResponseDefaultTypeInternal { |
29 | | public: |
30 | | ::google::protobuf::internal::ExplicitlyConstructed<HealthCheckResponse> |
31 | | _instance; |
32 | | } _HealthCheckResponse_default_instance_; |
33 | | } // namespace test |
34 | | namespace protobuf_health_5fcheck_2eproto { |
35 | 2 | static void InitDefaultsHealthCheckRequest() { |
36 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
37 | | |
38 | 2 | { |
39 | 2 | void* ptr = &::test::_HealthCheckRequest_default_instance_; |
40 | 2 | new (ptr) ::test::HealthCheckRequest(); |
41 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
42 | 2 | } |
43 | 2 | ::test::HealthCheckRequest::InitAsDefaultInstance(); |
44 | 2 | } |
45 | | |
46 | | ::google::protobuf::internal::SCCInfo<0> scc_info_HealthCheckRequest = |
47 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealthCheckRequest}, {}}; |
48 | | |
49 | 2 | static void InitDefaultsHealthCheckResponse() { |
50 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
51 | | |
52 | 2 | { |
53 | 2 | void* ptr = &::test::_HealthCheckResponse_default_instance_; |
54 | 2 | new (ptr) ::test::HealthCheckResponse(); |
55 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
56 | 2 | } |
57 | 2 | ::test::HealthCheckResponse::InitAsDefaultInstance(); |
58 | 2 | } |
59 | | |
60 | | ::google::protobuf::internal::SCCInfo<0> scc_info_HealthCheckResponse = |
61 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHealthCheckResponse}, {}}; |
62 | | |
63 | 2 | void InitDefaults() { |
64 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_HealthCheckRequest.base); |
65 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_HealthCheckResponse.base); |
66 | 2 | } |
67 | | |
68 | | ::google::protobuf::Metadata file_level_metadata[2]; |
69 | | const ::google::protobuf::ServiceDescriptor* file_level_service_descriptors[1]; |
70 | | |
71 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
72 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::test::HealthCheckRequest, _has_bits_), |
73 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::test::HealthCheckRequest, _internal_metadata_), |
74 | | ~0u, // no _extensions_ |
75 | | ~0u, // no _oneof_case_ |
76 | | ~0u, // no _weak_field_map_ |
77 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::test::HealthCheckResponse, _has_bits_), |
78 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::test::HealthCheckResponse, _internal_metadata_), |
79 | | ~0u, // no _extensions_ |
80 | | ~0u, // no _oneof_case_ |
81 | | ~0u, // no _weak_field_map_ |
82 | | }; |
83 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
84 | | { 0, 5, sizeof(::test::HealthCheckRequest)}, |
85 | | { 5, 10, sizeof(::test::HealthCheckResponse)}, |
86 | | }; |
87 | | |
88 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
89 | | reinterpret_cast<const ::google::protobuf::Message*>(&::test::_HealthCheckRequest_default_instance_), |
90 | | reinterpret_cast<const ::google::protobuf::Message*>(&::test::_HealthCheckResponse_default_instance_), |
91 | | }; |
92 | | |
93 | 0 | void protobuf_AssignDescriptors() { |
94 | 0 | AddDescriptors(); |
95 | 0 | AssignDescriptors( |
96 | 0 | "health_check.proto", schemas, file_default_instances, TableStruct::offsets, |
97 | 0 | file_level_metadata, NULL, file_level_service_descriptors); |
98 | 0 | } |
99 | | |
100 | 0 | void protobuf_AssignDescriptorsOnce() { |
101 | 0 | static ::google::protobuf::internal::once_flag once; |
102 | 0 | ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); |
103 | 0 | } |
104 | | |
105 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
106 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
107 | 0 | protobuf_AssignDescriptorsOnce(); |
108 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); |
109 | 0 | } |
110 | | |
111 | 2 | void AddDescriptorsImpl() { |
112 | 2 | InitDefaults(); |
113 | 2 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
114 | 2 | "\n\022health_check.proto\022\004test\"\024\n\022HealthChec" |
115 | 2 | "kRequest\"\025\n\023HealthCheckResponse2_\n\026Healt" |
116 | 2 | "hCheckTestService\022E\n\016default_method\022\030.te" |
117 | 2 | "st.HealthCheckRequest\032\031.test.HealthCheck" |
118 | 2 | "ResponseB\003\200\001\001" |
119 | 2 | }; |
120 | 2 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
121 | 2 | descriptor, 173); |
122 | 2 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
123 | 2 | "health_check.proto", &protobuf_RegisterTypes); |
124 | 2 | } |
125 | | |
126 | 2 | void AddDescriptors() { |
127 | 2 | static ::google::protobuf::internal::once_flag once; |
128 | 2 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
129 | 2 | } |
130 | | // Force AddDescriptors() to be called at dynamic initialization time. |
131 | | struct StaticDescriptorInitializer { |
132 | 2 | StaticDescriptorInitializer() { |
133 | 2 | AddDescriptors(); |
134 | 2 | } |
135 | | } static_descriptor_initializer; |
136 | | } // namespace protobuf_health_5fcheck_2eproto |
137 | | namespace test { |
138 | | |
139 | | // =================================================================== |
140 | | |
141 | 2 | void HealthCheckRequest::InitAsDefaultInstance() { |
142 | 2 | } |
143 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
144 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
145 | | |
146 | | HealthCheckRequest::HealthCheckRequest() |
147 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
148 | 2 | ::google::protobuf::internal::InitSCC( |
149 | 2 | &protobuf_health_5fcheck_2eproto::scc_info_HealthCheckRequest.base); |
150 | 2 | SharedCtor(); |
151 | | // @@protoc_insertion_point(constructor:test.HealthCheckRequest) |
152 | 2 | } |
153 | | HealthCheckRequest::HealthCheckRequest(const HealthCheckRequest& from) |
154 | 0 | : ::google::protobuf::Message(), |
155 | 0 | _internal_metadata_(NULL), |
156 | 0 | _has_bits_(from._has_bits_) { |
157 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
158 | | // @@protoc_insertion_point(copy_constructor:test.HealthCheckRequest) |
159 | 0 | } |
160 | | |
161 | 2 | void HealthCheckRequest::SharedCtor() { |
162 | 2 | } |
163 | | |
164 | 0 | HealthCheckRequest::~HealthCheckRequest() { |
165 | | // @@protoc_insertion_point(destructor:test.HealthCheckRequest) |
166 | 0 | SharedDtor(); |
167 | 0 | } |
168 | | |
169 | 0 | void HealthCheckRequest::SharedDtor() { |
170 | 0 | } |
171 | | |
172 | 0 | void HealthCheckRequest::SetCachedSize(int size) const { |
173 | 0 | _cached_size_.Set(size); |
174 | 0 | } |
175 | 0 | const ::google::protobuf::Descriptor* HealthCheckRequest::descriptor() { |
176 | 0 | ::protobuf_health_5fcheck_2eproto::protobuf_AssignDescriptorsOnce(); |
177 | 0 | return ::protobuf_health_5fcheck_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
178 | 0 | } |
179 | | |
180 | 0 | const HealthCheckRequest& HealthCheckRequest::default_instance() { |
181 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_health_5fcheck_2eproto::scc_info_HealthCheckRequest.base); |
182 | 0 | return *internal_default_instance(); |
183 | 0 | } |
184 | | |
185 | | |
186 | 0 | void HealthCheckRequest::Clear() { |
187 | | // @@protoc_insertion_point(message_clear_start:test.HealthCheckRequest) |
188 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
189 | | // Prevent compiler warnings about cached_has_bits being unused |
190 | 0 | (void) cached_has_bits; |
191 | |
|
192 | 0 | _has_bits_.Clear(); |
193 | 0 | _internal_metadata_.Clear(); |
194 | 0 | } |
195 | | |
196 | | bool HealthCheckRequest::MergePartialFromCodedStream( |
197 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
198 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
199 | 0 | ::google::protobuf::uint32 tag; |
200 | | // @@protoc_insertion_point(parse_start:test.HealthCheckRequest) |
201 | 0 | for (;;) { |
202 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
203 | 0 | tag = p.first; |
204 | 0 | if (!p.second) goto handle_unusual; |
205 | 0 | handle_unusual: |
206 | 0 | if (tag == 0) { |
207 | 0 | goto success; |
208 | 0 | } |
209 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
210 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
211 | 0 | } |
212 | 0 | success: |
213 | | // @@protoc_insertion_point(parse_success:test.HealthCheckRequest) |
214 | 0 | return true; |
215 | 0 | failure: |
216 | | // @@protoc_insertion_point(parse_failure:test.HealthCheckRequest) |
217 | 0 | return false; |
218 | 0 | #undef DO_ |
219 | 0 | } |
220 | | |
221 | | void HealthCheckRequest::SerializeWithCachedSizes( |
222 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
223 | | // @@protoc_insertion_point(serialize_start:test.HealthCheckRequest) |
224 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
225 | 0 | (void) cached_has_bits; |
226 | |
|
227 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
228 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
229 | 0 | _internal_metadata_.unknown_fields(), output); |
230 | 0 | } |
231 | | // @@protoc_insertion_point(serialize_end:test.HealthCheckRequest) |
232 | 0 | } |
233 | | |
234 | | ::google::protobuf::uint8* HealthCheckRequest::InternalSerializeWithCachedSizesToArray( |
235 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
236 | 0 | (void)deterministic; // Unused |
237 | | // @@protoc_insertion_point(serialize_to_array_start:test.HealthCheckRequest) |
238 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
239 | 0 | (void) cached_has_bits; |
240 | |
|
241 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
242 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
243 | 0 | _internal_metadata_.unknown_fields(), target); |
244 | 0 | } |
245 | | // @@protoc_insertion_point(serialize_to_array_end:test.HealthCheckRequest) |
246 | 0 | return target; |
247 | 0 | } |
248 | | |
249 | 0 | size_t HealthCheckRequest::ByteSizeLong() const { |
250 | | // @@protoc_insertion_point(message_byte_size_start:test.HealthCheckRequest) |
251 | 0 | size_t total_size = 0; |
252 | |
|
253 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
254 | 0 | total_size += |
255 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
256 | 0 | _internal_metadata_.unknown_fields()); |
257 | 0 | } |
258 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
259 | 0 | SetCachedSize(cached_size); |
260 | 0 | return total_size; |
261 | 0 | } |
262 | | |
263 | 0 | void HealthCheckRequest::MergeFrom(const ::google::protobuf::Message& from) { |
264 | | // @@protoc_insertion_point(generalized_merge_from_start:test.HealthCheckRequest) |
265 | 0 | GOOGLE_DCHECK_NE(&from, this); |
266 | 0 | const HealthCheckRequest* source = |
267 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const HealthCheckRequest>( |
268 | 0 | &from); |
269 | 0 | if (source == NULL) { |
270 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:test.HealthCheckRequest) |
271 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
272 | 0 | } else { |
273 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:test.HealthCheckRequest) |
274 | 0 | MergeFrom(*source); |
275 | 0 | } |
276 | 0 | } |
277 | | |
278 | 0 | void HealthCheckRequest::MergeFrom(const HealthCheckRequest& from) { |
279 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.HealthCheckRequest) |
280 | 0 | GOOGLE_DCHECK_NE(&from, this); |
281 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
282 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
283 | 0 | (void) cached_has_bits; |
284 | |
|
285 | 0 | } |
286 | | |
287 | 0 | void HealthCheckRequest::CopyFrom(const ::google::protobuf::Message& from) { |
288 | | // @@protoc_insertion_point(generalized_copy_from_start:test.HealthCheckRequest) |
289 | 0 | if (&from == this) return; |
290 | 0 | Clear(); |
291 | 0 | MergeFrom(from); |
292 | 0 | } |
293 | | |
294 | 0 | void HealthCheckRequest::CopyFrom(const HealthCheckRequest& from) { |
295 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.HealthCheckRequest) |
296 | 0 | if (&from == this) return; |
297 | 0 | Clear(); |
298 | 0 | MergeFrom(from); |
299 | 0 | } |
300 | | |
301 | 0 | bool HealthCheckRequest::IsInitialized() const { |
302 | 0 | return true; |
303 | 0 | } |
304 | | |
305 | 0 | void HealthCheckRequest::Swap(HealthCheckRequest* other) { |
306 | 0 | if (other == this) return; |
307 | 0 | InternalSwap(other); |
308 | 0 | } |
309 | 0 | void HealthCheckRequest::InternalSwap(HealthCheckRequest* other) { |
310 | 0 | using std::swap; |
311 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
312 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
313 | 0 | } |
314 | | |
315 | 0 | ::google::protobuf::Metadata HealthCheckRequest::GetMetadata() const { |
316 | 0 | protobuf_health_5fcheck_2eproto::protobuf_AssignDescriptorsOnce(); |
317 | 0 | return ::protobuf_health_5fcheck_2eproto::file_level_metadata[kIndexInFileMessages]; |
318 | 0 | } |
319 | | |
320 | | |
321 | | // =================================================================== |
322 | | |
323 | 2 | void HealthCheckResponse::InitAsDefaultInstance() { |
324 | 2 | } |
325 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
326 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
327 | | |
328 | | HealthCheckResponse::HealthCheckResponse() |
329 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
330 | 2 | ::google::protobuf::internal::InitSCC( |
331 | 2 | &protobuf_health_5fcheck_2eproto::scc_info_HealthCheckResponse.base); |
332 | 2 | SharedCtor(); |
333 | | // @@protoc_insertion_point(constructor:test.HealthCheckResponse) |
334 | 2 | } |
335 | | HealthCheckResponse::HealthCheckResponse(const HealthCheckResponse& from) |
336 | 0 | : ::google::protobuf::Message(), |
337 | 0 | _internal_metadata_(NULL), |
338 | 0 | _has_bits_(from._has_bits_) { |
339 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
340 | | // @@protoc_insertion_point(copy_constructor:test.HealthCheckResponse) |
341 | 0 | } |
342 | | |
343 | 2 | void HealthCheckResponse::SharedCtor() { |
344 | 2 | } |
345 | | |
346 | 0 | HealthCheckResponse::~HealthCheckResponse() { |
347 | | // @@protoc_insertion_point(destructor:test.HealthCheckResponse) |
348 | 0 | SharedDtor(); |
349 | 0 | } |
350 | | |
351 | 0 | void HealthCheckResponse::SharedDtor() { |
352 | 0 | } |
353 | | |
354 | 0 | void HealthCheckResponse::SetCachedSize(int size) const { |
355 | 0 | _cached_size_.Set(size); |
356 | 0 | } |
357 | 0 | const ::google::protobuf::Descriptor* HealthCheckResponse::descriptor() { |
358 | 0 | ::protobuf_health_5fcheck_2eproto::protobuf_AssignDescriptorsOnce(); |
359 | 0 | return ::protobuf_health_5fcheck_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
360 | 0 | } |
361 | | |
362 | 0 | const HealthCheckResponse& HealthCheckResponse::default_instance() { |
363 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_health_5fcheck_2eproto::scc_info_HealthCheckResponse.base); |
364 | 0 | return *internal_default_instance(); |
365 | 0 | } |
366 | | |
367 | | |
368 | 0 | void HealthCheckResponse::Clear() { |
369 | | // @@protoc_insertion_point(message_clear_start:test.HealthCheckResponse) |
370 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
371 | | // Prevent compiler warnings about cached_has_bits being unused |
372 | 0 | (void) cached_has_bits; |
373 | |
|
374 | 0 | _has_bits_.Clear(); |
375 | 0 | _internal_metadata_.Clear(); |
376 | 0 | } |
377 | | |
378 | | bool HealthCheckResponse::MergePartialFromCodedStream( |
379 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
380 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
381 | 0 | ::google::protobuf::uint32 tag; |
382 | | // @@protoc_insertion_point(parse_start:test.HealthCheckResponse) |
383 | 0 | for (;;) { |
384 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
385 | 0 | tag = p.first; |
386 | 0 | if (!p.second) goto handle_unusual; |
387 | 0 | handle_unusual: |
388 | 0 | if (tag == 0) { |
389 | 0 | goto success; |
390 | 0 | } |
391 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
392 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
393 | 0 | } |
394 | 0 | success: |
395 | | // @@protoc_insertion_point(parse_success:test.HealthCheckResponse) |
396 | 0 | return true; |
397 | 0 | failure: |
398 | | // @@protoc_insertion_point(parse_failure:test.HealthCheckResponse) |
399 | 0 | return false; |
400 | 0 | #undef DO_ |
401 | 0 | } |
402 | | |
403 | | void HealthCheckResponse::SerializeWithCachedSizes( |
404 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
405 | | // @@protoc_insertion_point(serialize_start:test.HealthCheckResponse) |
406 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
407 | 0 | (void) cached_has_bits; |
408 | |
|
409 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
410 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
411 | 0 | _internal_metadata_.unknown_fields(), output); |
412 | 0 | } |
413 | | // @@protoc_insertion_point(serialize_end:test.HealthCheckResponse) |
414 | 0 | } |
415 | | |
416 | | ::google::protobuf::uint8* HealthCheckResponse::InternalSerializeWithCachedSizesToArray( |
417 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
418 | 0 | (void)deterministic; // Unused |
419 | | // @@protoc_insertion_point(serialize_to_array_start:test.HealthCheckResponse) |
420 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
421 | 0 | (void) cached_has_bits; |
422 | |
|
423 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
424 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
425 | 0 | _internal_metadata_.unknown_fields(), target); |
426 | 0 | } |
427 | | // @@protoc_insertion_point(serialize_to_array_end:test.HealthCheckResponse) |
428 | 0 | return target; |
429 | 0 | } |
430 | | |
431 | 0 | size_t HealthCheckResponse::ByteSizeLong() const { |
432 | | // @@protoc_insertion_point(message_byte_size_start:test.HealthCheckResponse) |
433 | 0 | size_t total_size = 0; |
434 | |
|
435 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
436 | 0 | total_size += |
437 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
438 | 0 | _internal_metadata_.unknown_fields()); |
439 | 0 | } |
440 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
441 | 0 | SetCachedSize(cached_size); |
442 | 0 | return total_size; |
443 | 0 | } |
444 | | |
445 | 0 | void HealthCheckResponse::MergeFrom(const ::google::protobuf::Message& from) { |
446 | | // @@protoc_insertion_point(generalized_merge_from_start:test.HealthCheckResponse) |
447 | 0 | GOOGLE_DCHECK_NE(&from, this); |
448 | 0 | const HealthCheckResponse* source = |
449 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const HealthCheckResponse>( |
450 | 0 | &from); |
451 | 0 | if (source == NULL) { |
452 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:test.HealthCheckResponse) |
453 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
454 | 0 | } else { |
455 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:test.HealthCheckResponse) |
456 | 0 | MergeFrom(*source); |
457 | 0 | } |
458 | 0 | } |
459 | | |
460 | 0 | void HealthCheckResponse::MergeFrom(const HealthCheckResponse& from) { |
461 | | // @@protoc_insertion_point(class_specific_merge_from_start:test.HealthCheckResponse) |
462 | 0 | GOOGLE_DCHECK_NE(&from, this); |
463 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
464 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
465 | 0 | (void) cached_has_bits; |
466 | |
|
467 | 0 | } |
468 | | |
469 | 0 | void HealthCheckResponse::CopyFrom(const ::google::protobuf::Message& from) { |
470 | | // @@protoc_insertion_point(generalized_copy_from_start:test.HealthCheckResponse) |
471 | 0 | if (&from == this) return; |
472 | 0 | Clear(); |
473 | 0 | MergeFrom(from); |
474 | 0 | } |
475 | | |
476 | 0 | void HealthCheckResponse::CopyFrom(const HealthCheckResponse& from) { |
477 | | // @@protoc_insertion_point(class_specific_copy_from_start:test.HealthCheckResponse) |
478 | 0 | if (&from == this) return; |
479 | 0 | Clear(); |
480 | 0 | MergeFrom(from); |
481 | 0 | } |
482 | | |
483 | 0 | bool HealthCheckResponse::IsInitialized() const { |
484 | 0 | return true; |
485 | 0 | } |
486 | | |
487 | 0 | void HealthCheckResponse::Swap(HealthCheckResponse* other) { |
488 | 0 | if (other == this) return; |
489 | 0 | InternalSwap(other); |
490 | 0 | } |
491 | 0 | void HealthCheckResponse::InternalSwap(HealthCheckResponse* other) { |
492 | 0 | using std::swap; |
493 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
494 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
495 | 0 | } |
496 | | |
497 | 0 | ::google::protobuf::Metadata HealthCheckResponse::GetMetadata() const { |
498 | 0 | protobuf_health_5fcheck_2eproto::protobuf_AssignDescriptorsOnce(); |
499 | 0 | return ::protobuf_health_5fcheck_2eproto::file_level_metadata[kIndexInFileMessages]; |
500 | 0 | } |
501 | | |
502 | | |
503 | | // =================================================================== |
504 | | |
505 | 0 | HealthCheckTestService::~HealthCheckTestService() {} |
506 | | |
507 | 0 | const ::google::protobuf::ServiceDescriptor* HealthCheckTestService::descriptor() { |
508 | 0 | protobuf_health_5fcheck_2eproto::protobuf_AssignDescriptorsOnce(); |
509 | 0 | return protobuf_health_5fcheck_2eproto::file_level_service_descriptors[0]; |
510 | 0 | } |
511 | | |
512 | 0 | const ::google::protobuf::ServiceDescriptor* HealthCheckTestService::GetDescriptor() { |
513 | 0 | return descriptor(); |
514 | 0 | } |
515 | | |
516 | | void HealthCheckTestService::default_method(::google::protobuf::RpcController* controller, |
517 | | const ::test::HealthCheckRequest*, |
518 | | ::test::HealthCheckResponse*, |
519 | 0 | ::google::protobuf::Closure* done) { |
520 | 0 | controller->SetFailed("Method default_method() not implemented."); |
521 | 0 | done->Run(); |
522 | 0 | } |
523 | | |
524 | | void HealthCheckTestService::CallMethod(const ::google::protobuf::MethodDescriptor* method, |
525 | | ::google::protobuf::RpcController* controller, |
526 | | const ::google::protobuf::Message* request, |
527 | | ::google::protobuf::Message* response, |
528 | 0 | ::google::protobuf::Closure* done) { |
529 | 0 | GOOGLE_DCHECK_EQ(method->service(), protobuf_health_5fcheck_2eproto::file_level_service_descriptors[0]); |
530 | 0 | switch(method->index()) { |
531 | 0 | case 0: |
532 | 0 | default_method(controller, |
533 | 0 | ::google::protobuf::down_cast<const ::test::HealthCheckRequest*>(request), |
534 | 0 | ::google::protobuf::down_cast< ::test::HealthCheckResponse*>(response), |
535 | 0 | done); |
536 | 0 | break; |
537 | 0 | default: |
538 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
539 | 0 | break; |
540 | 0 | } |
541 | 0 | } |
542 | | |
543 | | const ::google::protobuf::Message& HealthCheckTestService::GetRequestPrototype( |
544 | 0 | const ::google::protobuf::MethodDescriptor* method) const { |
545 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
546 | 0 | switch(method->index()) { |
547 | 0 | case 0: |
548 | 0 | return ::test::HealthCheckRequest::default_instance(); |
549 | 0 | default: |
550 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
551 | 0 | return *::google::protobuf::MessageFactory::generated_factory() |
552 | 0 | ->GetPrototype(method->input_type()); |
553 | 0 | } |
554 | 0 | } |
555 | | |
556 | | const ::google::protobuf::Message& HealthCheckTestService::GetResponsePrototype( |
557 | 0 | const ::google::protobuf::MethodDescriptor* method) const { |
558 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
559 | 0 | switch(method->index()) { |
560 | 0 | case 0: |
561 | 0 | return ::test::HealthCheckResponse::default_instance(); |
562 | 0 | default: |
563 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
564 | 0 | return *::google::protobuf::MessageFactory::generated_factory() |
565 | 0 | ->GetPrototype(method->output_type()); |
566 | 0 | } |
567 | 0 | } |
568 | | |
569 | | HealthCheckTestService_Stub::HealthCheckTestService_Stub(::google::protobuf::RpcChannel* channel) |
570 | 0 | : channel_(channel), owns_channel_(false) {} |
571 | | HealthCheckTestService_Stub::HealthCheckTestService_Stub( |
572 | | ::google::protobuf::RpcChannel* channel, |
573 | | ::google::protobuf::Service::ChannelOwnership ownership) |
574 | 0 | : channel_(channel), |
575 | 0 | owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {} |
576 | 0 | HealthCheckTestService_Stub::~HealthCheckTestService_Stub() { |
577 | 0 | if (owns_channel_) delete channel_; |
578 | 0 | } |
579 | | |
580 | | void HealthCheckTestService_Stub::default_method(::google::protobuf::RpcController* controller, |
581 | | const ::test::HealthCheckRequest* request, |
582 | | ::test::HealthCheckResponse* response, |
583 | 0 | ::google::protobuf::Closure* done) { |
584 | 0 | channel_->CallMethod(descriptor()->method(0), |
585 | 0 | controller, request, response, done); |
586 | 0 | } |
587 | | |
588 | | // @@protoc_insertion_point(namespace_scope) |
589 | | } // namespace test |
590 | | namespace google { |
591 | | namespace protobuf { |
592 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::test::HealthCheckRequest* Arena::CreateMaybeMessage< ::test::HealthCheckRequest >(Arena* arena) { |
593 | 0 | return Arena::CreateInternal< ::test::HealthCheckRequest >(arena); |
594 | 0 | } |
595 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::test::HealthCheckResponse* Arena::CreateMaybeMessage< ::test::HealthCheckResponse >(Arena* arena) { |
596 | 0 | return Arena::CreateInternal< ::test::HealthCheckResponse >(arena); |
597 | 0 | } |
598 | | } // namespace protobuf |
599 | | } // namespace google |
600 | | |
601 | | // @@protoc_insertion_point(global_scope) |