/src/brpc/build/brpc/get_js.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: brpc/get_js.proto |
3 | | |
4 | | #include "brpc/get_js.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 brpc { |
24 | | PROTOBUF_CONSTEXPR GetJsRequest::GetJsRequest( |
25 | | ::_pbi::ConstantInitialized) {} |
26 | | struct GetJsRequestDefaultTypeInternal { |
27 | | PROTOBUF_CONSTEXPR GetJsRequestDefaultTypeInternal() |
28 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
29 | 0 | ~GetJsRequestDefaultTypeInternal() {} |
30 | | union { |
31 | | GetJsRequest _instance; |
32 | | }; |
33 | | }; |
34 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJsRequestDefaultTypeInternal _GetJsRequest_default_instance_; |
35 | | PROTOBUF_CONSTEXPR GetJsResponse::GetJsResponse( |
36 | | ::_pbi::ConstantInitialized) {} |
37 | | struct GetJsResponseDefaultTypeInternal { |
38 | | PROTOBUF_CONSTEXPR GetJsResponseDefaultTypeInternal() |
39 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
40 | 0 | ~GetJsResponseDefaultTypeInternal() {} |
41 | | union { |
42 | | GetJsResponse _instance; |
43 | | }; |
44 | | }; |
45 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetJsResponseDefaultTypeInternal _GetJsResponse_default_instance_; |
46 | | } // namespace brpc |
47 | | static ::_pb::Metadata file_level_metadata_brpc_2fget_5fjs_2eproto[2]; |
48 | | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_brpc_2fget_5fjs_2eproto = nullptr; |
49 | | static const ::_pb::ServiceDescriptor* file_level_service_descriptors_brpc_2fget_5fjs_2eproto[1]; |
50 | | |
51 | | const uint32_t TableStruct_brpc_2fget_5fjs_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
52 | | ~0u, // no _has_bits_ |
53 | | PROTOBUF_FIELD_OFFSET(::brpc::GetJsRequest, _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(::brpc::GetJsResponse, _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(::brpc::GetJsRequest)}, |
67 | | { 6, -1, -1, sizeof(::brpc::GetJsResponse)}, |
68 | | }; |
69 | | |
70 | | static const ::_pb::Message* const file_default_instances[] = { |
71 | | &::brpc::_GetJsRequest_default_instance_._instance, |
72 | | &::brpc::_GetJsResponse_default_instance_._instance, |
73 | | }; |
74 | | |
75 | | const char descriptor_table_protodef_brpc_2fget_5fjs_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
76 | | "\n\021brpc/get_js.proto\022\004brpc\"\016\n\014GetJsReques" |
77 | | "t\"\017\n\rGetJsResponse2\332\001\n\002js\0224\n\tsorttable\022\022" |
78 | | ".brpc.GetJsRequest\032\023.brpc.GetJsResponse\022" |
79 | | "5\n\njquery_min\022\022.brpc.GetJsRequest\032\023.brpc" |
80 | | ".GetJsResponse\0223\n\010flot_min\022\022.brpc.GetJsR" |
81 | | "equest\032\023.brpc.GetJsResponse\0222\n\007viz_min\022\022" |
82 | | ".brpc.GetJsRequest\032\023.brpc.GetJsResponseB" |
83 | | "\003\200\001\001" |
84 | | ; |
85 | | static ::_pbi::once_flag descriptor_table_brpc_2fget_5fjs_2eproto_once; |
86 | | const ::_pbi::DescriptorTable descriptor_table_brpc_2fget_5fjs_2eproto = { |
87 | | false, false, 284, descriptor_table_protodef_brpc_2fget_5fjs_2eproto, |
88 | | "brpc/get_js.proto", |
89 | | &descriptor_table_brpc_2fget_5fjs_2eproto_once, nullptr, 0, 2, |
90 | | schemas, file_default_instances, TableStruct_brpc_2fget_5fjs_2eproto::offsets, |
91 | | file_level_metadata_brpc_2fget_5fjs_2eproto, file_level_enum_descriptors_brpc_2fget_5fjs_2eproto, |
92 | | file_level_service_descriptors_brpc_2fget_5fjs_2eproto, |
93 | | }; |
94 | 0 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_brpc_2fget_5fjs_2eproto_getter() { |
95 | 0 | return &descriptor_table_brpc_2fget_5fjs_2eproto; |
96 | 0 | } |
97 | | |
98 | | // Force running AddDescriptors() at dynamic initialization time. |
99 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_brpc_2fget_5fjs_2eproto(&descriptor_table_brpc_2fget_5fjs_2eproto); |
100 | | namespace brpc { |
101 | | |
102 | | // =================================================================== |
103 | | |
104 | | class GetJsRequest::_Internal { |
105 | | public: |
106 | | }; |
107 | | |
108 | | GetJsRequest::GetJsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
109 | | bool is_message_owned) |
110 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
111 | | // @@protoc_insertion_point(arena_constructor:brpc.GetJsRequest) |
112 | 0 | } |
113 | | GetJsRequest::GetJsRequest(const GetJsRequest& from) |
114 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
115 | 0 | GetJsRequest* const _this = this; (void)_this; |
116 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
117 | | // @@protoc_insertion_point(copy_constructor:brpc.GetJsRequest) |
118 | 0 | } |
119 | | |
120 | | |
121 | | |
122 | | |
123 | | |
124 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJsRequest::_class_data_ = { |
125 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
126 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
127 | | }; |
128 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJsRequest::GetClassData() const { return &_class_data_; } |
129 | | |
130 | | |
131 | | |
132 | | |
133 | | |
134 | | |
135 | | |
136 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata GetJsRequest::GetMetadata() const { |
137 | 0 | return ::_pbi::AssignDescriptors( |
138 | 0 | &descriptor_table_brpc_2fget_5fjs_2eproto_getter, &descriptor_table_brpc_2fget_5fjs_2eproto_once, |
139 | 0 | file_level_metadata_brpc_2fget_5fjs_2eproto[0]); |
140 | 0 | } |
141 | | |
142 | | // =================================================================== |
143 | | |
144 | | class GetJsResponse::_Internal { |
145 | | public: |
146 | | }; |
147 | | |
148 | | GetJsResponse::GetJsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
149 | | bool is_message_owned) |
150 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { |
151 | | // @@protoc_insertion_point(arena_constructor:brpc.GetJsResponse) |
152 | 0 | } |
153 | | GetJsResponse::GetJsResponse(const GetJsResponse& from) |
154 | 0 | : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { |
155 | 0 | GetJsResponse* const _this = this; (void)_this; |
156 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
157 | | // @@protoc_insertion_point(copy_constructor:brpc.GetJsResponse) |
158 | 0 | } |
159 | | |
160 | | |
161 | | |
162 | | |
163 | | |
164 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetJsResponse::_class_data_ = { |
165 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, |
166 | | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, |
167 | | }; |
168 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetJsResponse::GetClassData() const { return &_class_data_; } |
169 | | |
170 | | |
171 | | |
172 | | |
173 | | |
174 | | |
175 | | |
176 | 0 | ::PROTOBUF_NAMESPACE_ID::Metadata GetJsResponse::GetMetadata() const { |
177 | 0 | return ::_pbi::AssignDescriptors( |
178 | 0 | &descriptor_table_brpc_2fget_5fjs_2eproto_getter, &descriptor_table_brpc_2fget_5fjs_2eproto_once, |
179 | 0 | file_level_metadata_brpc_2fget_5fjs_2eproto[1]); |
180 | 0 | } |
181 | | |
182 | | // =================================================================== |
183 | | |
184 | 0 | js::~js() {} |
185 | | |
186 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* js::descriptor() { |
187 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_brpc_2fget_5fjs_2eproto); |
188 | 0 | return file_level_service_descriptors_brpc_2fget_5fjs_2eproto[0]; |
189 | 0 | } |
190 | | |
191 | 0 | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* js::GetDescriptor() { |
192 | 0 | return descriptor(); |
193 | 0 | } |
194 | | |
195 | | void js::sorttable(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
196 | | const ::brpc::GetJsRequest*, |
197 | | ::brpc::GetJsResponse*, |
198 | 0 | ::google::protobuf::Closure* done) { |
199 | 0 | controller->SetFailed("Method sorttable() not implemented."); |
200 | 0 | done->Run(); |
201 | 0 | } |
202 | | |
203 | | void js::jquery_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
204 | | const ::brpc::GetJsRequest*, |
205 | | ::brpc::GetJsResponse*, |
206 | 0 | ::google::protobuf::Closure* done) { |
207 | 0 | controller->SetFailed("Method jquery_min() not implemented."); |
208 | 0 | done->Run(); |
209 | 0 | } |
210 | | |
211 | | void js::flot_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
212 | | const ::brpc::GetJsRequest*, |
213 | | ::brpc::GetJsResponse*, |
214 | 0 | ::google::protobuf::Closure* done) { |
215 | 0 | controller->SetFailed("Method flot_min() not implemented."); |
216 | 0 | done->Run(); |
217 | 0 | } |
218 | | |
219 | | void js::viz_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
220 | | const ::brpc::GetJsRequest*, |
221 | | ::brpc::GetJsResponse*, |
222 | 0 | ::google::protobuf::Closure* done) { |
223 | 0 | controller->SetFailed("Method viz_min() not implemented."); |
224 | 0 | done->Run(); |
225 | 0 | } |
226 | | |
227 | | void js::CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
228 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
229 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
230 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
231 | 0 | ::google::protobuf::Closure* done) { |
232 | 0 | GOOGLE_DCHECK_EQ(method->service(), file_level_service_descriptors_brpc_2fget_5fjs_2eproto[0]); |
233 | 0 | switch(method->index()) { |
234 | 0 | case 0: |
235 | 0 | sorttable(controller, |
236 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::brpc::GetJsRequest*>( |
237 | 0 | request), |
238 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::brpc::GetJsResponse*>( |
239 | 0 | response), |
240 | 0 | done); |
241 | 0 | break; |
242 | 0 | case 1: |
243 | 0 | jquery_min(controller, |
244 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::brpc::GetJsRequest*>( |
245 | 0 | request), |
246 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::brpc::GetJsResponse*>( |
247 | 0 | response), |
248 | 0 | done); |
249 | 0 | break; |
250 | 0 | case 2: |
251 | 0 | flot_min(controller, |
252 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::brpc::GetJsRequest*>( |
253 | 0 | request), |
254 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::brpc::GetJsResponse*>( |
255 | 0 | response), |
256 | 0 | done); |
257 | 0 | break; |
258 | 0 | case 3: |
259 | 0 | viz_min(controller, |
260 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ::brpc::GetJsRequest*>( |
261 | 0 | request), |
262 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::DownCast<::brpc::GetJsResponse*>( |
263 | 0 | response), |
264 | 0 | done); |
265 | 0 | break; |
266 | 0 | default: |
267 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
268 | 0 | break; |
269 | 0 | } |
270 | 0 | } |
271 | | |
272 | | const ::PROTOBUF_NAMESPACE_ID::Message& js::GetRequestPrototype( |
273 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
274 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
275 | 0 | switch(method->index()) { |
276 | 0 | case 0: |
277 | 0 | return ::brpc::GetJsRequest::default_instance(); |
278 | 0 | case 1: |
279 | 0 | return ::brpc::GetJsRequest::default_instance(); |
280 | 0 | case 2: |
281 | 0 | return ::brpc::GetJsRequest::default_instance(); |
282 | 0 | case 3: |
283 | 0 | return ::brpc::GetJsRequest::default_instance(); |
284 | 0 | default: |
285 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
286 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
287 | 0 | ->GetPrototype(method->input_type()); |
288 | 0 | } |
289 | 0 | } |
290 | | |
291 | | const ::PROTOBUF_NAMESPACE_ID::Message& js::GetResponsePrototype( |
292 | 0 | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const { |
293 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
294 | 0 | switch(method->index()) { |
295 | 0 | case 0: |
296 | 0 | return ::brpc::GetJsResponse::default_instance(); |
297 | 0 | case 1: |
298 | 0 | return ::brpc::GetJsResponse::default_instance(); |
299 | 0 | case 2: |
300 | 0 | return ::brpc::GetJsResponse::default_instance(); |
301 | 0 | case 3: |
302 | 0 | return ::brpc::GetJsResponse::default_instance(); |
303 | 0 | default: |
304 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
305 | 0 | return *::PROTOBUF_NAMESPACE_ID::MessageFactory::generated_factory() |
306 | 0 | ->GetPrototype(method->output_type()); |
307 | 0 | } |
308 | 0 | } |
309 | | |
310 | | js_Stub::js_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel) |
311 | 0 | : channel_(channel), owns_channel_(false) {} |
312 | | js_Stub::js_Stub( |
313 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
314 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership) |
315 | 0 | : channel_(channel), |
316 | 0 | owns_channel_(ownership == ::PROTOBUF_NAMESPACE_ID::Service::STUB_OWNS_CHANNEL) {} |
317 | 0 | js_Stub::~js_Stub() { |
318 | 0 | if (owns_channel_) delete channel_; |
319 | 0 | } |
320 | | |
321 | | void js_Stub::sorttable(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
322 | | const ::brpc::GetJsRequest* request, |
323 | | ::brpc::GetJsResponse* response, |
324 | 0 | ::google::protobuf::Closure* done) { |
325 | 0 | channel_->CallMethod(descriptor()->method(0), |
326 | 0 | controller, request, response, done); |
327 | 0 | } |
328 | | void js_Stub::jquery_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
329 | | const ::brpc::GetJsRequest* request, |
330 | | ::brpc::GetJsResponse* response, |
331 | 0 | ::google::protobuf::Closure* done) { |
332 | 0 | channel_->CallMethod(descriptor()->method(1), |
333 | 0 | controller, request, response, done); |
334 | 0 | } |
335 | | void js_Stub::flot_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
336 | | const ::brpc::GetJsRequest* request, |
337 | | ::brpc::GetJsResponse* response, |
338 | 0 | ::google::protobuf::Closure* done) { |
339 | 0 | channel_->CallMethod(descriptor()->method(2), |
340 | 0 | controller, request, response, done); |
341 | 0 | } |
342 | | void js_Stub::viz_min(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
343 | | const ::brpc::GetJsRequest* request, |
344 | | ::brpc::GetJsResponse* response, |
345 | 0 | ::google::protobuf::Closure* done) { |
346 | 0 | channel_->CallMethod(descriptor()->method(3), |
347 | 0 | controller, request, response, done); |
348 | 0 | } |
349 | | |
350 | | // @@protoc_insertion_point(namespace_scope) |
351 | | } // namespace brpc |
352 | | PROTOBUF_NAMESPACE_OPEN |
353 | | template<> PROTOBUF_NOINLINE ::brpc::GetJsRequest* |
354 | 0 | Arena::CreateMaybeMessage< ::brpc::GetJsRequest >(Arena* arena) { |
355 | 0 | return Arena::CreateMessageInternal< ::brpc::GetJsRequest >(arena); |
356 | 0 | } |
357 | | template<> PROTOBUF_NOINLINE ::brpc::GetJsResponse* |
358 | 0 | Arena::CreateMaybeMessage< ::brpc::GetJsResponse >(Arena* arena) { |
359 | 0 | return Arena::CreateMessageInternal< ::brpc::GetJsResponse >(arena); |
360 | 0 | } |
361 | | PROTOBUF_NAMESPACE_CLOSE |
362 | | |
363 | | // @@protoc_insertion_point(global_scope) |
364 | | #include <google/protobuf/port_undef.inc> |