/src/brpc/build/brpc/get_js.pb.cc
Line | Count | Source (jump to first uncovered line) |
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/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 brpc { |
23 | | class GetJsRequestDefaultTypeInternal { |
24 | | public: |
25 | | ::google::protobuf::internal::ExplicitlyConstructed<GetJsRequest> |
26 | | _instance; |
27 | | } _GetJsRequest_default_instance_; |
28 | | class GetJsResponseDefaultTypeInternal { |
29 | | public: |
30 | | ::google::protobuf::internal::ExplicitlyConstructed<GetJsResponse> |
31 | | _instance; |
32 | | } _GetJsResponse_default_instance_; |
33 | | } // namespace brpc |
34 | | namespace protobuf_brpc_2fget_5fjs_2eproto { |
35 | 12 | static void InitDefaultsGetJsRequest() { |
36 | 12 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
37 | | |
38 | 12 | { |
39 | 12 | void* ptr = &::brpc::_GetJsRequest_default_instance_; |
40 | 12 | new (ptr) ::brpc::GetJsRequest(); |
41 | 12 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
42 | 12 | } |
43 | 12 | ::brpc::GetJsRequest::InitAsDefaultInstance(); |
44 | 12 | } |
45 | | |
46 | | ::google::protobuf::internal::SCCInfo<0> scc_info_GetJsRequest = |
47 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetJsRequest}, {}}; |
48 | | |
49 | 12 | static void InitDefaultsGetJsResponse() { |
50 | 12 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
51 | | |
52 | 12 | { |
53 | 12 | void* ptr = &::brpc::_GetJsResponse_default_instance_; |
54 | 12 | new (ptr) ::brpc::GetJsResponse(); |
55 | 12 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
56 | 12 | } |
57 | 12 | ::brpc::GetJsResponse::InitAsDefaultInstance(); |
58 | 12 | } |
59 | | |
60 | | ::google::protobuf::internal::SCCInfo<0> scc_info_GetJsResponse = |
61 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetJsResponse}, {}}; |
62 | | |
63 | 12 | void InitDefaults() { |
64 | 12 | ::google::protobuf::internal::InitSCC(&scc_info_GetJsRequest.base); |
65 | 12 | ::google::protobuf::internal::InitSCC(&scc_info_GetJsResponse.base); |
66 | 12 | } |
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(::brpc::GetJsRequest, _has_bits_), |
73 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::GetJsRequest, _internal_metadata_), |
74 | | ~0u, // no _extensions_ |
75 | | ~0u, // no _oneof_case_ |
76 | | ~0u, // no _weak_field_map_ |
77 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::GetJsResponse, _has_bits_), |
78 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::GetJsResponse, _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(::brpc::GetJsRequest)}, |
85 | | { 5, 10, sizeof(::brpc::GetJsResponse)}, |
86 | | }; |
87 | | |
88 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
89 | | reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::_GetJsRequest_default_instance_), |
90 | | reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::_GetJsResponse_default_instance_), |
91 | | }; |
92 | | |
93 | 0 | void protobuf_AssignDescriptors() { |
94 | 0 | AddDescriptors(); |
95 | 0 | AssignDescriptors( |
96 | 0 | "brpc/get_js.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 | 12 | void AddDescriptorsImpl() { |
112 | 12 | InitDefaults(); |
113 | 12 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
114 | 12 | "\n\021brpc/get_js.proto\022\004brpc\"\016\n\014GetJsReques" |
115 | 12 | "t\"\017\n\rGetJsResponse2\332\001\n\002js\0224\n\tsorttable\022\022" |
116 | 12 | ".brpc.GetJsRequest\032\023.brpc.GetJsResponse\022" |
117 | 12 | "5\n\njquery_min\022\022.brpc.GetJsRequest\032\023.brpc" |
118 | 12 | ".GetJsResponse\0223\n\010flot_min\022\022.brpc.GetJsR" |
119 | 12 | "equest\032\023.brpc.GetJsResponse\0222\n\007viz_min\022\022" |
120 | 12 | ".brpc.GetJsRequest\032\023.brpc.GetJsResponseB" |
121 | 12 | "\003\200\001\001" |
122 | 12 | }; |
123 | 12 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
124 | 12 | descriptor, 284); |
125 | 12 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
126 | 12 | "brpc/get_js.proto", &protobuf_RegisterTypes); |
127 | 12 | } |
128 | | |
129 | 12 | void AddDescriptors() { |
130 | 12 | static ::google::protobuf::internal::once_flag once; |
131 | 12 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
132 | 12 | } |
133 | | // Force AddDescriptors() to be called at dynamic initialization time. |
134 | | struct StaticDescriptorInitializer { |
135 | 12 | StaticDescriptorInitializer() { |
136 | 12 | AddDescriptors(); |
137 | 12 | } |
138 | | } static_descriptor_initializer; |
139 | | } // namespace protobuf_brpc_2fget_5fjs_2eproto |
140 | | namespace brpc { |
141 | | |
142 | | // =================================================================== |
143 | | |
144 | 12 | void GetJsRequest::InitAsDefaultInstance() { |
145 | 12 | } |
146 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
147 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
148 | | |
149 | | GetJsRequest::GetJsRequest() |
150 | 12 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
151 | 12 | ::google::protobuf::internal::InitSCC( |
152 | 12 | &protobuf_brpc_2fget_5fjs_2eproto::scc_info_GetJsRequest.base); |
153 | 12 | SharedCtor(); |
154 | | // @@protoc_insertion_point(constructor:brpc.GetJsRequest) |
155 | 12 | } |
156 | | GetJsRequest::GetJsRequest(const GetJsRequest& from) |
157 | | : ::google::protobuf::Message(), |
158 | | _internal_metadata_(NULL), |
159 | 0 | _has_bits_(from._has_bits_) { |
160 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
161 | | // @@protoc_insertion_point(copy_constructor:brpc.GetJsRequest) |
162 | 0 | } |
163 | | |
164 | 12 | void GetJsRequest::SharedCtor() { |
165 | 12 | } |
166 | | |
167 | 0 | GetJsRequest::~GetJsRequest() { |
168 | | // @@protoc_insertion_point(destructor:brpc.GetJsRequest) |
169 | 0 | SharedDtor(); |
170 | 0 | } |
171 | | |
172 | 0 | void GetJsRequest::SharedDtor() { |
173 | 0 | } |
174 | | |
175 | 0 | void GetJsRequest::SetCachedSize(int size) const { |
176 | 0 | _cached_size_.Set(size); |
177 | 0 | } |
178 | 0 | const ::google::protobuf::Descriptor* GetJsRequest::descriptor() { |
179 | 0 | ::protobuf_brpc_2fget_5fjs_2eproto::protobuf_AssignDescriptorsOnce(); |
180 | 0 | return ::protobuf_brpc_2fget_5fjs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
181 | 0 | } |
182 | | |
183 | 0 | const GetJsRequest& GetJsRequest::default_instance() { |
184 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fget_5fjs_2eproto::scc_info_GetJsRequest.base); |
185 | 0 | return *internal_default_instance(); |
186 | 0 | } |
187 | | |
188 | | |
189 | 0 | void GetJsRequest::Clear() { |
190 | | // @@protoc_insertion_point(message_clear_start:brpc.GetJsRequest) |
191 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
192 | | // Prevent compiler warnings about cached_has_bits being unused |
193 | 0 | (void) cached_has_bits; |
194 | |
|
195 | 0 | _has_bits_.Clear(); |
196 | 0 | _internal_metadata_.Clear(); |
197 | 0 | } |
198 | | |
199 | | bool GetJsRequest::MergePartialFromCodedStream( |
200 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
201 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
202 | 0 | ::google::protobuf::uint32 tag; |
203 | | // @@protoc_insertion_point(parse_start:brpc.GetJsRequest) |
204 | 0 | for (;;) { |
205 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
206 | 0 | tag = p.first; |
207 | 0 | if (!p.second) goto handle_unusual; |
208 | 0 | handle_unusual: |
209 | 0 | if (tag == 0) { |
210 | 0 | goto success; |
211 | 0 | } |
212 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
213 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
214 | 0 | } |
215 | 0 | success: |
216 | | // @@protoc_insertion_point(parse_success:brpc.GetJsRequest) |
217 | 0 | return true; |
218 | 0 | failure: |
219 | | // @@protoc_insertion_point(parse_failure:brpc.GetJsRequest) |
220 | 0 | return false; |
221 | 0 | #undef DO_ |
222 | 0 | } |
223 | | |
224 | | void GetJsRequest::SerializeWithCachedSizes( |
225 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
226 | | // @@protoc_insertion_point(serialize_start:brpc.GetJsRequest) |
227 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
228 | 0 | (void) cached_has_bits; |
229 | |
|
230 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
231 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
232 | 0 | _internal_metadata_.unknown_fields(), output); |
233 | 0 | } |
234 | | // @@protoc_insertion_point(serialize_end:brpc.GetJsRequest) |
235 | 0 | } |
236 | | |
237 | | ::google::protobuf::uint8* GetJsRequest::InternalSerializeWithCachedSizesToArray( |
238 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
239 | 0 | (void)deterministic; // Unused |
240 | | // @@protoc_insertion_point(serialize_to_array_start:brpc.GetJsRequest) |
241 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
242 | 0 | (void) cached_has_bits; |
243 | |
|
244 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
245 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
246 | 0 | _internal_metadata_.unknown_fields(), target); |
247 | 0 | } |
248 | | // @@protoc_insertion_point(serialize_to_array_end:brpc.GetJsRequest) |
249 | 0 | return target; |
250 | 0 | } |
251 | | |
252 | 0 | size_t GetJsRequest::ByteSizeLong() const { |
253 | | // @@protoc_insertion_point(message_byte_size_start:brpc.GetJsRequest) |
254 | 0 | size_t total_size = 0; |
255 | |
|
256 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
257 | 0 | total_size += |
258 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
259 | 0 | _internal_metadata_.unknown_fields()); |
260 | 0 | } |
261 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
262 | 0 | SetCachedSize(cached_size); |
263 | 0 | return total_size; |
264 | 0 | } |
265 | | |
266 | 0 | void GetJsRequest::MergeFrom(const ::google::protobuf::Message& from) { |
267 | | // @@protoc_insertion_point(generalized_merge_from_start:brpc.GetJsRequest) |
268 | 0 | GOOGLE_DCHECK_NE(&from, this); |
269 | 0 | const GetJsRequest* source = |
270 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetJsRequest>( |
271 | 0 | &from); |
272 | 0 | if (source == NULL) { |
273 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.GetJsRequest) |
274 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
275 | 0 | } else { |
276 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.GetJsRequest) |
277 | 0 | MergeFrom(*source); |
278 | 0 | } |
279 | 0 | } |
280 | | |
281 | 0 | void GetJsRequest::MergeFrom(const GetJsRequest& from) { |
282 | | // @@protoc_insertion_point(class_specific_merge_from_start:brpc.GetJsRequest) |
283 | 0 | GOOGLE_DCHECK_NE(&from, this); |
284 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
285 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
286 | 0 | (void) cached_has_bits; |
287 | |
|
288 | 0 | } |
289 | | |
290 | 0 | void GetJsRequest::CopyFrom(const ::google::protobuf::Message& from) { |
291 | | // @@protoc_insertion_point(generalized_copy_from_start:brpc.GetJsRequest) |
292 | 0 | if (&from == this) return; |
293 | 0 | Clear(); |
294 | 0 | MergeFrom(from); |
295 | 0 | } |
296 | | |
297 | 0 | void GetJsRequest::CopyFrom(const GetJsRequest& from) { |
298 | | // @@protoc_insertion_point(class_specific_copy_from_start:brpc.GetJsRequest) |
299 | 0 | if (&from == this) return; |
300 | 0 | Clear(); |
301 | 0 | MergeFrom(from); |
302 | 0 | } |
303 | | |
304 | 0 | bool GetJsRequest::IsInitialized() const { |
305 | 0 | return true; |
306 | 0 | } |
307 | | |
308 | 0 | void GetJsRequest::Swap(GetJsRequest* other) { |
309 | 0 | if (other == this) return; |
310 | 0 | InternalSwap(other); |
311 | 0 | } |
312 | 0 | void GetJsRequest::InternalSwap(GetJsRequest* other) { |
313 | 0 | using std::swap; |
314 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
315 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
316 | 0 | } |
317 | | |
318 | 0 | ::google::protobuf::Metadata GetJsRequest::GetMetadata() const { |
319 | 0 | protobuf_brpc_2fget_5fjs_2eproto::protobuf_AssignDescriptorsOnce(); |
320 | 0 | return ::protobuf_brpc_2fget_5fjs_2eproto::file_level_metadata[kIndexInFileMessages]; |
321 | 0 | } |
322 | | |
323 | | |
324 | | // =================================================================== |
325 | | |
326 | 12 | void GetJsResponse::InitAsDefaultInstance() { |
327 | 12 | } |
328 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
329 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
330 | | |
331 | | GetJsResponse::GetJsResponse() |
332 | 12 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
333 | 12 | ::google::protobuf::internal::InitSCC( |
334 | 12 | &protobuf_brpc_2fget_5fjs_2eproto::scc_info_GetJsResponse.base); |
335 | 12 | SharedCtor(); |
336 | | // @@protoc_insertion_point(constructor:brpc.GetJsResponse) |
337 | 12 | } |
338 | | GetJsResponse::GetJsResponse(const GetJsResponse& from) |
339 | | : ::google::protobuf::Message(), |
340 | | _internal_metadata_(NULL), |
341 | 0 | _has_bits_(from._has_bits_) { |
342 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
343 | | // @@protoc_insertion_point(copy_constructor:brpc.GetJsResponse) |
344 | 0 | } |
345 | | |
346 | 12 | void GetJsResponse::SharedCtor() { |
347 | 12 | } |
348 | | |
349 | 0 | GetJsResponse::~GetJsResponse() { |
350 | | // @@protoc_insertion_point(destructor:brpc.GetJsResponse) |
351 | 0 | SharedDtor(); |
352 | 0 | } |
353 | | |
354 | 0 | void GetJsResponse::SharedDtor() { |
355 | 0 | } |
356 | | |
357 | 0 | void GetJsResponse::SetCachedSize(int size) const { |
358 | 0 | _cached_size_.Set(size); |
359 | 0 | } |
360 | 0 | const ::google::protobuf::Descriptor* GetJsResponse::descriptor() { |
361 | 0 | ::protobuf_brpc_2fget_5fjs_2eproto::protobuf_AssignDescriptorsOnce(); |
362 | 0 | return ::protobuf_brpc_2fget_5fjs_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
363 | 0 | } |
364 | | |
365 | 0 | const GetJsResponse& GetJsResponse::default_instance() { |
366 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fget_5fjs_2eproto::scc_info_GetJsResponse.base); |
367 | 0 | return *internal_default_instance(); |
368 | 0 | } |
369 | | |
370 | | |
371 | 0 | void GetJsResponse::Clear() { |
372 | | // @@protoc_insertion_point(message_clear_start:brpc.GetJsResponse) |
373 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
374 | | // Prevent compiler warnings about cached_has_bits being unused |
375 | 0 | (void) cached_has_bits; |
376 | |
|
377 | 0 | _has_bits_.Clear(); |
378 | 0 | _internal_metadata_.Clear(); |
379 | 0 | } |
380 | | |
381 | | bool GetJsResponse::MergePartialFromCodedStream( |
382 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
383 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
384 | 0 | ::google::protobuf::uint32 tag; |
385 | | // @@protoc_insertion_point(parse_start:brpc.GetJsResponse) |
386 | 0 | for (;;) { |
387 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
388 | 0 | tag = p.first; |
389 | 0 | if (!p.second) goto handle_unusual; |
390 | 0 | handle_unusual: |
391 | 0 | if (tag == 0) { |
392 | 0 | goto success; |
393 | 0 | } |
394 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
395 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
396 | 0 | } |
397 | 0 | success: |
398 | | // @@protoc_insertion_point(parse_success:brpc.GetJsResponse) |
399 | 0 | return true; |
400 | 0 | failure: |
401 | | // @@protoc_insertion_point(parse_failure:brpc.GetJsResponse) |
402 | 0 | return false; |
403 | 0 | #undef DO_ |
404 | 0 | } |
405 | | |
406 | | void GetJsResponse::SerializeWithCachedSizes( |
407 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
408 | | // @@protoc_insertion_point(serialize_start:brpc.GetJsResponse) |
409 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
410 | 0 | (void) cached_has_bits; |
411 | |
|
412 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
413 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
414 | 0 | _internal_metadata_.unknown_fields(), output); |
415 | 0 | } |
416 | | // @@protoc_insertion_point(serialize_end:brpc.GetJsResponse) |
417 | 0 | } |
418 | | |
419 | | ::google::protobuf::uint8* GetJsResponse::InternalSerializeWithCachedSizesToArray( |
420 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
421 | 0 | (void)deterministic; // Unused |
422 | | // @@protoc_insertion_point(serialize_to_array_start:brpc.GetJsResponse) |
423 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
424 | 0 | (void) cached_has_bits; |
425 | |
|
426 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
427 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
428 | 0 | _internal_metadata_.unknown_fields(), target); |
429 | 0 | } |
430 | | // @@protoc_insertion_point(serialize_to_array_end:brpc.GetJsResponse) |
431 | 0 | return target; |
432 | 0 | } |
433 | | |
434 | 0 | size_t GetJsResponse::ByteSizeLong() const { |
435 | | // @@protoc_insertion_point(message_byte_size_start:brpc.GetJsResponse) |
436 | 0 | size_t total_size = 0; |
437 | |
|
438 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
439 | 0 | total_size += |
440 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
441 | 0 | _internal_metadata_.unknown_fields()); |
442 | 0 | } |
443 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
444 | 0 | SetCachedSize(cached_size); |
445 | 0 | return total_size; |
446 | 0 | } |
447 | | |
448 | 0 | void GetJsResponse::MergeFrom(const ::google::protobuf::Message& from) { |
449 | | // @@protoc_insertion_point(generalized_merge_from_start:brpc.GetJsResponse) |
450 | 0 | GOOGLE_DCHECK_NE(&from, this); |
451 | 0 | const GetJsResponse* source = |
452 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetJsResponse>( |
453 | 0 | &from); |
454 | 0 | if (source == NULL) { |
455 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.GetJsResponse) |
456 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
457 | 0 | } else { |
458 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.GetJsResponse) |
459 | 0 | MergeFrom(*source); |
460 | 0 | } |
461 | 0 | } |
462 | | |
463 | 0 | void GetJsResponse::MergeFrom(const GetJsResponse& from) { |
464 | | // @@protoc_insertion_point(class_specific_merge_from_start:brpc.GetJsResponse) |
465 | 0 | GOOGLE_DCHECK_NE(&from, this); |
466 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
467 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
468 | 0 | (void) cached_has_bits; |
469 | |
|
470 | 0 | } |
471 | | |
472 | 0 | void GetJsResponse::CopyFrom(const ::google::protobuf::Message& from) { |
473 | | // @@protoc_insertion_point(generalized_copy_from_start:brpc.GetJsResponse) |
474 | 0 | if (&from == this) return; |
475 | 0 | Clear(); |
476 | 0 | MergeFrom(from); |
477 | 0 | } |
478 | | |
479 | 0 | void GetJsResponse::CopyFrom(const GetJsResponse& from) { |
480 | | // @@protoc_insertion_point(class_specific_copy_from_start:brpc.GetJsResponse) |
481 | 0 | if (&from == this) return; |
482 | 0 | Clear(); |
483 | 0 | MergeFrom(from); |
484 | 0 | } |
485 | | |
486 | 0 | bool GetJsResponse::IsInitialized() const { |
487 | 0 | return true; |
488 | 0 | } |
489 | | |
490 | 0 | void GetJsResponse::Swap(GetJsResponse* other) { |
491 | 0 | if (other == this) return; |
492 | 0 | InternalSwap(other); |
493 | 0 | } |
494 | 0 | void GetJsResponse::InternalSwap(GetJsResponse* other) { |
495 | 0 | using std::swap; |
496 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
497 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
498 | 0 | } |
499 | | |
500 | 0 | ::google::protobuf::Metadata GetJsResponse::GetMetadata() const { |
501 | 0 | protobuf_brpc_2fget_5fjs_2eproto::protobuf_AssignDescriptorsOnce(); |
502 | 0 | return ::protobuf_brpc_2fget_5fjs_2eproto::file_level_metadata[kIndexInFileMessages]; |
503 | 0 | } |
504 | | |
505 | | |
506 | | // =================================================================== |
507 | | |
508 | 0 | js::~js() {} |
509 | | |
510 | 0 | const ::google::protobuf::ServiceDescriptor* js::descriptor() { |
511 | 0 | protobuf_brpc_2fget_5fjs_2eproto::protobuf_AssignDescriptorsOnce(); |
512 | 0 | return protobuf_brpc_2fget_5fjs_2eproto::file_level_service_descriptors[0]; |
513 | 0 | } |
514 | | |
515 | 0 | const ::google::protobuf::ServiceDescriptor* js::GetDescriptor() { |
516 | 0 | return descriptor(); |
517 | 0 | } |
518 | | |
519 | | void js::sorttable(::google::protobuf::RpcController* controller, |
520 | | const ::brpc::GetJsRequest*, |
521 | | ::brpc::GetJsResponse*, |
522 | 0 | ::google::protobuf::Closure* done) { |
523 | 0 | controller->SetFailed("Method sorttable() not implemented."); |
524 | 0 | done->Run(); |
525 | 0 | } |
526 | | |
527 | | void js::jquery_min(::google::protobuf::RpcController* controller, |
528 | | const ::brpc::GetJsRequest*, |
529 | | ::brpc::GetJsResponse*, |
530 | 0 | ::google::protobuf::Closure* done) { |
531 | 0 | controller->SetFailed("Method jquery_min() not implemented."); |
532 | 0 | done->Run(); |
533 | 0 | } |
534 | | |
535 | | void js::flot_min(::google::protobuf::RpcController* controller, |
536 | | const ::brpc::GetJsRequest*, |
537 | | ::brpc::GetJsResponse*, |
538 | 0 | ::google::protobuf::Closure* done) { |
539 | 0 | controller->SetFailed("Method flot_min() not implemented."); |
540 | 0 | done->Run(); |
541 | 0 | } |
542 | | |
543 | | void js::viz_min(::google::protobuf::RpcController* controller, |
544 | | const ::brpc::GetJsRequest*, |
545 | | ::brpc::GetJsResponse*, |
546 | 0 | ::google::protobuf::Closure* done) { |
547 | 0 | controller->SetFailed("Method viz_min() not implemented."); |
548 | 0 | done->Run(); |
549 | 0 | } |
550 | | |
551 | | void js::CallMethod(const ::google::protobuf::MethodDescriptor* method, |
552 | | ::google::protobuf::RpcController* controller, |
553 | | const ::google::protobuf::Message* request, |
554 | | ::google::protobuf::Message* response, |
555 | 0 | ::google::protobuf::Closure* done) { |
556 | 0 | GOOGLE_DCHECK_EQ(method->service(), protobuf_brpc_2fget_5fjs_2eproto::file_level_service_descriptors[0]); |
557 | 0 | switch(method->index()) { |
558 | 0 | case 0: |
559 | 0 | sorttable(controller, |
560 | 0 | ::google::protobuf::down_cast<const ::brpc::GetJsRequest*>(request), |
561 | 0 | ::google::protobuf::down_cast< ::brpc::GetJsResponse*>(response), |
562 | 0 | done); |
563 | 0 | break; |
564 | 0 | case 1: |
565 | 0 | jquery_min(controller, |
566 | 0 | ::google::protobuf::down_cast<const ::brpc::GetJsRequest*>(request), |
567 | 0 | ::google::protobuf::down_cast< ::brpc::GetJsResponse*>(response), |
568 | 0 | done); |
569 | 0 | break; |
570 | 0 | case 2: |
571 | 0 | flot_min(controller, |
572 | 0 | ::google::protobuf::down_cast<const ::brpc::GetJsRequest*>(request), |
573 | 0 | ::google::protobuf::down_cast< ::brpc::GetJsResponse*>(response), |
574 | 0 | done); |
575 | 0 | break; |
576 | 0 | case 3: |
577 | 0 | viz_min(controller, |
578 | 0 | ::google::protobuf::down_cast<const ::brpc::GetJsRequest*>(request), |
579 | 0 | ::google::protobuf::down_cast< ::brpc::GetJsResponse*>(response), |
580 | 0 | done); |
581 | 0 | break; |
582 | 0 | default: |
583 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
584 | 0 | break; |
585 | 0 | } |
586 | 0 | } |
587 | | |
588 | | const ::google::protobuf::Message& js::GetRequestPrototype( |
589 | 0 | const ::google::protobuf::MethodDescriptor* method) const { |
590 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
591 | 0 | switch(method->index()) { |
592 | 0 | case 0: |
593 | 0 | return ::brpc::GetJsRequest::default_instance(); |
594 | 0 | case 1: |
595 | 0 | return ::brpc::GetJsRequest::default_instance(); |
596 | 0 | case 2: |
597 | 0 | return ::brpc::GetJsRequest::default_instance(); |
598 | 0 | case 3: |
599 | 0 | return ::brpc::GetJsRequest::default_instance(); |
600 | 0 | default: |
601 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
602 | 0 | return *::google::protobuf::MessageFactory::generated_factory() |
603 | 0 | ->GetPrototype(method->input_type()); |
604 | 0 | } |
605 | 0 | } |
606 | | |
607 | | const ::google::protobuf::Message& js::GetResponsePrototype( |
608 | 0 | const ::google::protobuf::MethodDescriptor* method) const { |
609 | 0 | GOOGLE_DCHECK_EQ(method->service(), descriptor()); |
610 | 0 | switch(method->index()) { |
611 | 0 | case 0: |
612 | 0 | return ::brpc::GetJsResponse::default_instance(); |
613 | 0 | case 1: |
614 | 0 | return ::brpc::GetJsResponse::default_instance(); |
615 | 0 | case 2: |
616 | 0 | return ::brpc::GetJsResponse::default_instance(); |
617 | 0 | case 3: |
618 | 0 | return ::brpc::GetJsResponse::default_instance(); |
619 | 0 | default: |
620 | 0 | GOOGLE_LOG(FATAL) << "Bad method index; this should never happen."; |
621 | 0 | return *::google::protobuf::MessageFactory::generated_factory() |
622 | 0 | ->GetPrototype(method->output_type()); |
623 | 0 | } |
624 | 0 | } |
625 | | |
626 | | js_Stub::js_Stub(::google::protobuf::RpcChannel* channel) |
627 | 0 | : channel_(channel), owns_channel_(false) {} |
628 | | js_Stub::js_Stub( |
629 | | ::google::protobuf::RpcChannel* channel, |
630 | | ::google::protobuf::Service::ChannelOwnership ownership) |
631 | | : channel_(channel), |
632 | 0 | owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {} |
633 | 0 | js_Stub::~js_Stub() { |
634 | 0 | if (owns_channel_) delete channel_; |
635 | 0 | } |
636 | | |
637 | | void js_Stub::sorttable(::google::protobuf::RpcController* controller, |
638 | | const ::brpc::GetJsRequest* request, |
639 | | ::brpc::GetJsResponse* response, |
640 | 0 | ::google::protobuf::Closure* done) { |
641 | 0 | channel_->CallMethod(descriptor()->method(0), |
642 | 0 | controller, request, response, done); |
643 | 0 | } |
644 | | void js_Stub::jquery_min(::google::protobuf::RpcController* controller, |
645 | | const ::brpc::GetJsRequest* request, |
646 | | ::brpc::GetJsResponse* response, |
647 | 0 | ::google::protobuf::Closure* done) { |
648 | 0 | channel_->CallMethod(descriptor()->method(1), |
649 | 0 | controller, request, response, done); |
650 | 0 | } |
651 | | void js_Stub::flot_min(::google::protobuf::RpcController* controller, |
652 | | const ::brpc::GetJsRequest* request, |
653 | | ::brpc::GetJsResponse* response, |
654 | 0 | ::google::protobuf::Closure* done) { |
655 | 0 | channel_->CallMethod(descriptor()->method(2), |
656 | 0 | controller, request, response, done); |
657 | 0 | } |
658 | | void js_Stub::viz_min(::google::protobuf::RpcController* controller, |
659 | | const ::brpc::GetJsRequest* request, |
660 | | ::brpc::GetJsResponse* response, |
661 | 0 | ::google::protobuf::Closure* done) { |
662 | 0 | channel_->CallMethod(descriptor()->method(3), |
663 | 0 | controller, request, response, done); |
664 | 0 | } |
665 | | |
666 | | // @@protoc_insertion_point(namespace_scope) |
667 | | } // namespace brpc |
668 | | namespace google { |
669 | | namespace protobuf { |
670 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::GetJsRequest* Arena::CreateMaybeMessage< ::brpc::GetJsRequest >(Arena* arena) { |
671 | 0 | return Arena::CreateInternal< ::brpc::GetJsRequest >(arena); |
672 | 0 | } |
673 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::GetJsResponse* Arena::CreateMaybeMessage< ::brpc::GetJsResponse >(Arena* arena) { |
674 | 0 | return Arena::CreateInternal< ::brpc::GetJsResponse >(arena); |
675 | 0 | } |
676 | | } // namespace protobuf |
677 | | } // namespace google |
678 | | |
679 | | // @@protoc_insertion_point(global_scope) |