/src/brpc/build/test/health_check.pb.cc
Line | Count | Source |
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/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 HealthCheckRequest::HealthCheckRequest( |
25 | | ::_pbi::ConstantInitialized) {} |
26 | | struct HealthCheckRequestDefaultTypeInternal { |
27 | | PROTOBUF_CONSTEXPR HealthCheckRequestDefaultTypeInternal() |
28 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
29 | 0 | ~HealthCheckRequestDefaultTypeInternal() {} |
30 | | union { |
31 | | HealthCheckRequest _instance; |
32 | | }; |
33 | | }; |
34 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HealthCheckRequestDefaultTypeInternal _HealthCheckRequest_default_instance_; |
35 | | PROTOBUF_CONSTEXPR HealthCheckResponse::HealthCheckResponse( |
36 | | ::_pbi::ConstantInitialized) {} |
37 | | struct HealthCheckResponseDefaultTypeInternal { |
38 | | PROTOBUF_CONSTEXPR HealthCheckResponseDefaultTypeInternal() |
39 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
40 | 0 | ~HealthCheckResponseDefaultTypeInternal() {} |
41 | | union { |
42 | | HealthCheckResponse _instance; |
43 | | }; |
44 | | }; |
45 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HealthCheckResponseDefaultTypeInternal _HealthCheckResponse_default_instance_; |
46 | | } // namespace test |
47 | | static ::_pb::Metadata file_level_metadata_health_5fcheck_2eproto[2]; |
48 | | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_health_5fcheck_2eproto = nullptr; |
49 | | static const ::_pb::ServiceDescriptor* file_level_service_descriptors_health_5fcheck_2eproto[1]; |
50 | | |
51 | | const uint32_t TableStruct_health_5fcheck_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
52 | | ~0u, // no _has_bits_ |
53 | | PROTOBUF_FIELD_OFFSET(::test::HealthCheckRequest, _internal_metadata_), |
54 | | ~0u, // no _extensions_ |
55 | | ~0u, // no _oneof_case_ |
56 | | ~0u, // no _weak_field_map_ |
57 | | ~0u, // no _inlined_string_donated_ |
58 | | ~0u, // no _has_bits_ |
59 | | PROTOBUF_FIELD_OFFSET(::test::HealthCheckResponse, _internal_metadata_), |
60 | | ~0u, // no _extensions_ |
61 | | ~0u, // no _oneof_case_ |
62 | | ~0u, // no _weak_field_map_ |
63 | | ~0u, // no _inlined_string_donated_ |
64 | | }; |
65 | | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
66 | | { 0, -1, -1, sizeof(::test::HealthCheckRequest)}, |
67 | | { 6, -1, -1, sizeof(::test::HealthCheckResponse)}, |
68 | | }; |
69 | | |
70 | | static const ::_pb::Message* const file_default_instances[] = { |
71 | | &::test::_HealthCheckRequest_default_instance_._instance, |
72 | | &::test::_HealthCheckResponse_default_instance_._instance, |
73 | | }; |
74 | | |
75 | | const char descriptor_table_protodef_health_5fcheck_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
76 | | "\n\022health_check.proto\022\004test\"\024\n\022HealthChec" |
77 | | "kRequest\"\025\n\023HealthCheckResponse2_\n\026Healt" |
78 | | "hCheckTestService\022E\n\016default_method\022\030.te" |
79 | | "st.HealthCheckRequest\032\031.test.HealthCheck" |
80 | | "ResponseB\003\200\001\001" |
81 | | ; |
82 | | static ::_pbi::once_flag descriptor_table_health_5fcheck_2eproto_once; |
83 | | const ::_pbi::DescriptorTable descriptor_table_health_5fcheck_2eproto = { |
84 | | false, false, 173, descriptor_table_protodef_health_5fcheck_2eproto, |
85 | | "health_check.proto", |
86 | | &descriptor_table_health_5fcheck_2eproto_once, nullptr, 0, 2, |
87 | | schemas, file_default_instances, TableStruct_health_5fcheck_2eproto::offsets, |
88 | | file_level_metadata_health_5fcheck_2eproto, file_level_enum_descriptors_health_5fcheck_2eproto, |
89 | | file_level_service_descriptors_health_5fcheck_2eproto, |
90 | | }; |
91 | 0 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_health_5fcheck_2eproto_getter() { |
92 | 0 | return &descriptor_table_health_5fcheck_2eproto; |
93 | 0 | } |
94 | | |
95 | | // Force running AddDescriptors() at dynamic initialization time. |
96 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_health_5fcheck_2eproto(&descriptor_table_health_5fcheck_2eproto); |
97 | | namespace test { |
98 | | |
99 | | // =================================================================== |
100 | | |
101 | | class HealthCheckRequest::_Internal { |
102 | | public: |
103 | | }; |
104 | | |
105 | | HealthCheckRequest::HealthCheckRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
106 | | bool is_message_owned) |
107 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
108 | | // @@protoc_insertion_point(arena_constructor:test.HealthCheckRequest) |
109 | 0 | } |
110 | | HealthCheckRequest::HealthCheckRequest(const HealthCheckRequest& from) |
111 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
112 | 0 | HealthCheckRequest* const _this = this; (void)_this; |
113 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
114 | | // @@protoc_insertion_point(copy_constructor:test.HealthCheckRequest) |
115 | 0 | } |
116 | | |
117 | | |
118 | | |
119 | | |
120 | | |
121 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HealthCheckRequest::_class_data_ = { |
122 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
123 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
124 | | }; |
125 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HealthCheckRequest::GetClassData() const { return &_class_data_; } |
126 | | |
127 | | |
128 | | |
129 | | |
130 | | |
131 | | |
132 | | |
133 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata HealthCheckRequest::GetMetadata() const { |
134 | 0 | return ::_pbi::AssignDescriptors( |
135 | 0 | &descriptor_table_health_5fcheck_2eproto_getter, &descriptor_table_health_5fcheck_2eproto_once, |
136 | 0 | file_level_metadata_health_5fcheck_2eproto[0]); |
137 | 0 | } |
138 | | |
139 | | // =================================================================== |
140 | | |
141 | | class HealthCheckResponse::_Internal { |
142 | | public: |
143 | | }; |
144 | | |
145 | | HealthCheckResponse::HealthCheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
146 | | bool is_message_owned) |
147 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
148 | | // @@protoc_insertion_point(arena_constructor:test.HealthCheckResponse) |
149 | 0 | } |
150 | | HealthCheckResponse::HealthCheckResponse(const HealthCheckResponse& from) |
151 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
152 | 0 | HealthCheckResponse* const _this = this; (void)_this; |
153 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
154 | | // @@protoc_insertion_point(copy_constructor:test.HealthCheckResponse) |
155 | 0 | } |
156 | | |
157 | | |
158 | | |
159 | | |
160 | | |
161 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HealthCheckResponse::_class_data_ = { |
162 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
163 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
164 | | }; |
165 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HealthCheckResponse::GetClassData() const { return &_class_data_; } |
166 | | |
167 | | |
168 | | |
169 | | |
170 | | |
171 | | |
172 | | |
173 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata HealthCheckResponse::GetMetadata() const { |
174 | 0 | return ::_pbi::AssignDescriptors( |
175 | 0 | &descriptor_table_health_5fcheck_2eproto_getter, &descriptor_table_health_5fcheck_2eproto_once, |
176 | 0 | file_level_metadata_health_5fcheck_2eproto[1]); |
177 | 0 | } |
178 | | |
179 | | // =================================================================== |
180 | | |
181 | 0 | HealthCheckTestService::~HealthCheckTestService() {} |
182 | | |
183 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HealthCheckTestService::descriptor() { |
184 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_health_5fcheck_2eproto); |
185 | 0 | return file_level_service_descriptors_health_5fcheck_2eproto[0]; |
186 | 0 | } |
187 | | |
188 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* HealthCheckTestService::GetDescriptor() { |
189 | 0 | return descriptor(); |
190 | 0 | } |
191 | | |
192 | | void HealthCheckTestService::default_method(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
193 | | const ::test::HealthCheckRequest*, |
194 | | ::test::HealthCheckResponse*, |
195 | 0 | ::google::protobuf::Closure* done) { |
196 | 0 | controller->SetFailed("Method default_method() not implemented."); |
197 | 0 | done->Run(); |
198 | 0 | } |
199 | | |
200 | | void HealthCheckTestService::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
201 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
202 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
203 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
204 | 0 | ::google::protobuf::Closure* done) { |
205 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_health_5fcheck_2eproto[0]); |
206 | 0 | switch(method->index()) { |
207 | 0 | case 0: |
208 | 0 | default_method(controller, |
209 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::test::HealthCheckRequest*>( |
210 | 0 | request), |
211 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::test::HealthCheckResponse*>( |
212 | 0 | response), |
213 | 0 | done); |
214 | 0 | break; |
215 | 0 | default: |
216 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
217 | 0 | break; |
218 | 0 | } |
219 | 0 | } |
220 | | |
221 | | const ::PROTOBUF_NAMESPACE_ID::Message& HealthCheckTestService::GetRequestPrototype( |
222 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
223 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
224 | 0 | switch(method->index()) { |
225 | 0 | case 0: |
226 | 0 | return ::test::HealthCheckRequest::default_instance(); |
227 | 0 | default: |
228 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
229 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
230 | 0 | ->GetPrototype(method->input_type()); |
231 | 0 | } |
232 | 0 | } |
233 | | |
234 | | const ::PROTOBUF_NAMESPACE_ID::Message& HealthCheckTestService::GetResponsePrototype( |
235 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
236 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
237 | 0 | switch(method->index()) { |
238 | 0 | case 0: |
239 | 0 | return ::test::HealthCheckResponse::default_instance(); |
240 | 0 | default: |
241 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
242 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
243 | 0 | ->GetPrototype(method->output_type()); |
244 | 0 | } |
245 | 0 | } |
246 | | |
247 | | HealthCheckTestService_Stub::HealthCheckTestService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
248 | 0 | : channel_(channel), owns_channel_(false) {} |
249 | | HealthCheckTestService_Stub::HealthCheckTestService_Stub( |
250 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
251 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
252 | 0 | : channel_(channel), |
253 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
254 | 0 | HealthCheckTestService_Stub::~HealthCheckTestService_Stub() { |
255 | 0 | if (owns_channel_) delete channel_; |
256 | 0 | } |
257 | | |
258 | | void HealthCheckTestService_Stub::default_method(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
259 | | const ::test::HealthCheckRequest* request, |
260 | | ::test::HealthCheckResponse* response, |
261 | 0 | ::google::protobuf::Closure* done) { |
262 | 0 | channel_->CallMethod(descriptor()->method(0), |
263 | 0 | controller, request, response, done); |
264 | 0 | } |
265 | | |
266 | | // @@protoc_insertion_point(namespace_scope) |
267 | | } // namespace test |
268 | | PROTOBUF_NAMESPACE_OPEN |
269 | | template<> PROTOBUF_NOINLINE ::test::HealthCheckRequest* |
270 | 0 | Arena::CreateMaybeMessage< ::test::HealthCheckRequest >(Arena* arena) { |
271 | 0 | return Arena::CreateMessageInternal< ::test::HealthCheckRequest >(arena); |
272 | 0 | } |
273 | | template<> PROTOBUF_NOINLINE ::test::HealthCheckResponse* |
274 | 0 | Arena::CreateMaybeMessage< ::test::HealthCheckResponse >(Arena* arena) { |
275 | 0 | return Arena::CreateMessageInternal< ::test::HealthCheckResponse >(arena); |
276 | 0 | } |
277 | | PROTOBUF_NAMESPACE_CLOSE |
278 | | |
279 | | // @@protoc_insertion_point(global_scope) |
280 | | #include <google/protobuf/port_undef.inc> |