/src/brpc/build/brpc/get_favicon.pb.cc
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: brpc/get_favicon.proto |
3 | | |
4 | | #include "brpc/get_favicon.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 GetFaviconRequestDefaultTypeInternal { |
24 | | public: |
25 | | ::google::protobuf::internal::ExplicitlyConstructed<GetFaviconRequest> |
26 | | _instance; |
27 | | } _GetFaviconRequest_default_instance_; |
28 | | class GetFaviconResponseDefaultTypeInternal { |
29 | | public: |
30 | | ::google::protobuf::internal::ExplicitlyConstructed<GetFaviconResponse> |
31 | | _instance; |
32 | | } _GetFaviconResponse_default_instance_; |
33 | | } // namespace brpc |
34 | | namespace protobuf_brpc_2fget_5ffavicon_2eproto { |
35 | 2 | static void InitDefaultsGetFaviconRequest() { |
36 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
37 | | |
38 | 2 | { |
39 | 2 | void* ptr = &::brpc::_GetFaviconRequest_default_instance_; |
40 | 2 | new (ptr) ::brpc::GetFaviconRequest(); |
41 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
42 | 2 | } |
43 | 2 | ::brpc::GetFaviconRequest::InitAsDefaultInstance(); |
44 | 2 | } |
45 | | |
46 | | ::google::protobuf::internal::SCCInfo<0> scc_info_GetFaviconRequest = |
47 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetFaviconRequest}, {}}; |
48 | | |
49 | 2 | static void InitDefaultsGetFaviconResponse() { |
50 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
51 | | |
52 | 2 | { |
53 | 2 | void* ptr = &::brpc::_GetFaviconResponse_default_instance_; |
54 | 2 | new (ptr) ::brpc::GetFaviconResponse(); |
55 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
56 | 2 | } |
57 | 2 | ::brpc::GetFaviconResponse::InitAsDefaultInstance(); |
58 | 2 | } |
59 | | |
60 | | ::google::protobuf::internal::SCCInfo<0> scc_info_GetFaviconResponse = |
61 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetFaviconResponse}, {}}; |
62 | | |
63 | 2 | void InitDefaults() { |
64 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_GetFaviconRequest.base); |
65 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_GetFaviconResponse.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(::brpc::GetFaviconRequest, _has_bits_), |
73 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::GetFaviconRequest, _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::GetFaviconResponse, _has_bits_), |
78 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::GetFaviconResponse, _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::GetFaviconRequest)}, |
85 | | { 5, 10, sizeof(::brpc::GetFaviconResponse)}, |
86 | | }; |
87 | | |
88 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
89 | | reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::_GetFaviconRequest_default_instance_), |
90 | | reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::_GetFaviconResponse_default_instance_), |
91 | | }; |
92 | | |
93 | 0 | void protobuf_AssignDescriptors() { |
94 | 0 | AddDescriptors(); |
95 | 0 | AssignDescriptors( |
96 | 0 | "brpc/get_favicon.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\026brpc/get_favicon.proto\022\004brpc\"\023\n\021GetFav" |
115 | 2 | "iconRequest\"\024\n\022GetFaviconResponse2J\n\003ico" |
116 | 2 | "\022C\n\016default_method\022\027.brpc.GetFaviconRequ" |
117 | 2 | "est\032\030.brpc.GetFaviconResponseB\034\n\010com.brp" |
118 | 2 | "cB\nGetFavicon\200\001\001\210\001\001" |
119 | 2 | }; |
120 | 2 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
121 | 2 | descriptor, 179); |
122 | 2 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
123 | 2 | "brpc/get_favicon.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_brpc_2fget_5ffavicon_2eproto |
137 | | namespace brpc { |
138 | | |
139 | | // =================================================================== |
140 | | |
141 | 2 | void GetFaviconRequest::InitAsDefaultInstance() { |
142 | 2 | } |
143 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
144 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
145 | | |
146 | | GetFaviconRequest::GetFaviconRequest() |
147 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
148 | 2 | ::google::protobuf::internal::InitSCC( |
149 | 2 | &protobuf_brpc_2fget_5ffavicon_2eproto::scc_info_GetFaviconRequest.base); |
150 | 2 | SharedCtor(); |
151 | | // @@protoc_insertion_point(constructor:brpc.GetFaviconRequest) |
152 | 2 | } |
153 | | GetFaviconRequest::GetFaviconRequest(const GetFaviconRequest& 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:brpc.GetFaviconRequest) |
159 | 0 | } |
160 | | |
161 | 2 | void GetFaviconRequest::SharedCtor() { |
162 | 2 | } |
163 | | |
164 | 0 | GetFaviconRequest::~GetFaviconRequest() { |
165 | | // @@protoc_insertion_point(destructor:brpc.GetFaviconRequest) |
166 | 0 | SharedDtor(); |
167 | 0 | } |
168 | | |
169 | 0 | void GetFaviconRequest::SharedDtor() { |
170 | 0 | } |
171 | | |
172 | 0 | void GetFaviconRequest::SetCachedSize(int size) const { |
173 | 0 | _cached_size_.Set(size); |
174 | 0 | } |
175 | 0 | const ::google::protobuf::Descriptor* GetFaviconRequest::descriptor() { |
176 | 0 | ::protobuf_brpc_2fget_5ffavicon_2eproto::protobuf_AssignDescriptorsOnce(); |
177 | 0 | return ::protobuf_brpc_2fget_5ffavicon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
178 | 0 | } |
179 | | |
180 | 0 | const GetFaviconRequest& GetFaviconRequest::default_instance() { |
181 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fget_5ffavicon_2eproto::scc_info_GetFaviconRequest.base); |
182 | 0 | return *internal_default_instance(); |
183 | 0 | } |
184 | | |
185 | | |
186 | 0 | void GetFaviconRequest::Clear() { |
187 | | // @@protoc_insertion_point(message_clear_start:brpc.GetFaviconRequest) |
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 GetFaviconRequest::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:brpc.GetFaviconRequest) |
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:brpc.GetFaviconRequest) |
214 | 0 | return true; |
215 | 0 | failure: |
216 | | // @@protoc_insertion_point(parse_failure:brpc.GetFaviconRequest) |
217 | 0 | return false; |
218 | 0 | #undef DO_ |
219 | 0 | } |
220 | | |
221 | | void GetFaviconRequest::SerializeWithCachedSizes( |
222 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
223 | | // @@protoc_insertion_point(serialize_start:brpc.GetFaviconRequest) |
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:brpc.GetFaviconRequest) |
232 | 0 | } |
233 | | |
234 | | ::google::protobuf::uint8* GetFaviconRequest::InternalSerializeWithCachedSizesToArray( |
235 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
236 | 0 | (void)deterministic; // Unused |
237 | | // @@protoc_insertion_point(serialize_to_array_start:brpc.GetFaviconRequest) |
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:brpc.GetFaviconRequest) |
246 | 0 | return target; |
247 | 0 | } |
248 | | |
249 | 0 | size_t GetFaviconRequest::ByteSizeLong() const { |
250 | | // @@protoc_insertion_point(message_byte_size_start:brpc.GetFaviconRequest) |
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 GetFaviconRequest::MergeFrom(const ::google::protobuf::Message& from) { |
264 | | // @@protoc_insertion_point(generalized_merge_from_start:brpc.GetFaviconRequest) |
265 | 0 | GOOGLE_DCHECK_NE(&from, this); |
266 | 0 | const GetFaviconRequest* source = |
267 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetFaviconRequest>( |
268 | 0 | &from); |
269 | 0 | if (source == NULL) { |
270 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.GetFaviconRequest) |
271 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
272 | 0 | } else { |
273 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.GetFaviconRequest) |
274 | 0 | MergeFrom(*source); |
275 | 0 | } |
276 | 0 | } |
277 | | |
278 | 0 | void GetFaviconRequest::MergeFrom(const GetFaviconRequest& from) { |
279 | | // @@protoc_insertion_point(class_specific_merge_from_start:brpc.GetFaviconRequest) |
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 GetFaviconRequest::CopyFrom(const ::google::protobuf::Message& from) { |
288 | | // @@protoc_insertion_point(generalized_copy_from_start:brpc.GetFaviconRequest) |
289 | 0 | if (&from == this) return; |
290 | 0 | Clear(); |
291 | 0 | MergeFrom(from); |
292 | 0 | } |
293 | | |
294 | 0 | void GetFaviconRequest::CopyFrom(const GetFaviconRequest& from) { |
295 | | // @@protoc_insertion_point(class_specific_copy_from_start:brpc.GetFaviconRequest) |
296 | 0 | if (&from == this) return; |
297 | 0 | Clear(); |
298 | 0 | MergeFrom(from); |
299 | 0 | } |
300 | | |
301 | 0 | bool GetFaviconRequest::IsInitialized() const { |
302 | 0 | return true; |
303 | 0 | } |
304 | | |
305 | 0 | void GetFaviconRequest::Swap(GetFaviconRequest* other) { |
306 | 0 | if (other == this) return; |
307 | 0 | InternalSwap(other); |
308 | 0 | } |
309 | 0 | void GetFaviconRequest::InternalSwap(GetFaviconRequest* 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 GetFaviconRequest::GetMetadata() const { |
316 | 0 | protobuf_brpc_2fget_5ffavicon_2eproto::protobuf_AssignDescriptorsOnce(); |
317 | 0 | return ::protobuf_brpc_2fget_5ffavicon_2eproto::file_level_metadata[kIndexInFileMessages]; |
318 | 0 | } |
319 | | |
320 | | |
321 | | // =================================================================== |
322 | | |
323 | 2 | void GetFaviconResponse::InitAsDefaultInstance() { |
324 | 2 | } |
325 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
326 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
327 | | |
328 | | GetFaviconResponse::GetFaviconResponse() |
329 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
330 | 2 | ::google::protobuf::internal::InitSCC( |
331 | 2 | &protobuf_brpc_2fget_5ffavicon_2eproto::scc_info_GetFaviconResponse.base); |
332 | 2 | SharedCtor(); |
333 | | // @@protoc_insertion_point(constructor:brpc.GetFaviconResponse) |
334 | 2 | } |
335 | | GetFaviconResponse::GetFaviconResponse(const GetFaviconResponse& 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:brpc.GetFaviconResponse) |
341 | 0 | } |
342 | | |
343 | 2 | void GetFaviconResponse::SharedCtor() { |
344 | 2 | } |
345 | | |
346 | 0 | GetFaviconResponse::~GetFaviconResponse() { |
347 | | // @@protoc_insertion_point(destructor:brpc.GetFaviconResponse) |
348 | 0 | SharedDtor(); |
349 | 0 | } |
350 | | |
351 | 0 | void GetFaviconResponse::SharedDtor() { |
352 | 0 | } |
353 | | |
354 | 0 | void GetFaviconResponse::SetCachedSize(int size) const { |
355 | 0 | _cached_size_.Set(size); |
356 | 0 | } |
357 | 0 | const ::google::protobuf::Descriptor* GetFaviconResponse::descriptor() { |
358 | 0 | ::protobuf_brpc_2fget_5ffavicon_2eproto::protobuf_AssignDescriptorsOnce(); |
359 | 0 | return ::protobuf_brpc_2fget_5ffavicon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
360 | 0 | } |
361 | | |
362 | 0 | const GetFaviconResponse& GetFaviconResponse::default_instance() { |
363 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fget_5ffavicon_2eproto::scc_info_GetFaviconResponse.base); |
364 | 0 | return *internal_default_instance(); |
365 | 0 | } |
366 | | |
367 | | |
368 | 0 | void GetFaviconResponse::Clear() { |
369 | | // @@protoc_insertion_point(message_clear_start:brpc.GetFaviconResponse) |
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 GetFaviconResponse::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:brpc.GetFaviconResponse) |
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:brpc.GetFaviconResponse) |
396 | 0 | return true; |
397 | 0 | failure: |
398 | | // @@protoc_insertion_point(parse_failure:brpc.GetFaviconResponse) |
399 | 0 | return false; |
400 | 0 | #undef DO_ |
401 | 0 | } |
402 | | |
403 | | void GetFaviconResponse::SerializeWithCachedSizes( |
404 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
405 | | // @@protoc_insertion_point(serialize_start:brpc.GetFaviconResponse) |
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:brpc.GetFaviconResponse) |
414 | 0 | } |
415 | | |
416 | | ::google::protobuf::uint8* GetFaviconResponse::InternalSerializeWithCachedSizesToArray( |
417 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
418 | 0 | (void)deterministic; // Unused |
419 | | // @@protoc_insertion_point(serialize_to_array_start:brpc.GetFaviconResponse) |
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:brpc.GetFaviconResponse) |
428 | 0 | return target; |
429 | 0 | } |
430 | | |
431 | 0 | size_t GetFaviconResponse::ByteSizeLong() const { |
432 | | // @@protoc_insertion_point(message_byte_size_start:brpc.GetFaviconResponse) |
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 GetFaviconResponse::MergeFrom(const ::google::protobuf::Message& from) { |
446 | | // @@protoc_insertion_point(generalized_merge_from_start:brpc.GetFaviconResponse) |
447 | 0 | GOOGLE_DCHECK_NE(&from, this); |
448 | 0 | const GetFaviconResponse* source = |
449 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const GetFaviconResponse>( |
450 | 0 | &from); |
451 | 0 | if (source == NULL) { |
452 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.GetFaviconResponse) |
453 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
454 | 0 | } else { |
455 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.GetFaviconResponse) |
456 | 0 | MergeFrom(*source); |
457 | 0 | } |
458 | 0 | } |
459 | | |
460 | 0 | void GetFaviconResponse::MergeFrom(const GetFaviconResponse& from) { |
461 | | // @@protoc_insertion_point(class_specific_merge_from_start:brpc.GetFaviconResponse) |
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 GetFaviconResponse::CopyFrom(const ::google::protobuf::Message& from) { |
470 | | // @@protoc_insertion_point(generalized_copy_from_start:brpc.GetFaviconResponse) |
471 | 0 | if (&from == this) return; |
472 | 0 | Clear(); |
473 | 0 | MergeFrom(from); |
474 | 0 | } |
475 | | |
476 | 0 | void GetFaviconResponse::CopyFrom(const GetFaviconResponse& from) { |
477 | | // @@protoc_insertion_point(class_specific_copy_from_start:brpc.GetFaviconResponse) |
478 | 0 | if (&from == this) return; |
479 | 0 | Clear(); |
480 | 0 | MergeFrom(from); |
481 | 0 | } |
482 | | |
483 | 0 | bool GetFaviconResponse::IsInitialized() const { |
484 | 0 | return true; |
485 | 0 | } |
486 | | |
487 | 0 | void GetFaviconResponse::Swap(GetFaviconResponse* other) { |
488 | 0 | if (other == this) return; |
489 | 0 | InternalSwap(other); |
490 | 0 | } |
491 | 0 | void GetFaviconResponse::InternalSwap(GetFaviconResponse* 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 GetFaviconResponse::GetMetadata() const { |
498 | 0 | protobuf_brpc_2fget_5ffavicon_2eproto::protobuf_AssignDescriptorsOnce(); |
499 | 0 | return ::protobuf_brpc_2fget_5ffavicon_2eproto::file_level_metadata[kIndexInFileMessages]; |
500 | 0 | } |
501 | | |
502 | | |
503 | | // =================================================================== |
504 | | |
505 | 0 | ico::~ico() {} |
506 | | |
507 | 0 | const ::google::protobuf::ServiceDescriptor* ico::descriptor() { |
508 | 0 | protobuf_brpc_2fget_5ffavicon_2eproto::protobuf_AssignDescriptorsOnce(); |
509 | 0 | return protobuf_brpc_2fget_5ffavicon_2eproto::file_level_service_descriptors[0]; |
510 | 0 | } |
511 | | |
512 | 0 | const ::google::protobuf::ServiceDescriptor* ico::GetDescriptor() { |
513 | 0 | return descriptor(); |
514 | 0 | } |
515 | | |
516 | | void ico::default_method(::google::protobuf::RpcController* controller, |
517 | | const ::brpc::GetFaviconRequest*, |
518 | | ::brpc::GetFaviconResponse*, |
519 | 0 | ::google::protobuf::Closure* done) { |
520 | 0 | controller->SetFailed("Method default_method() not implemented."); |
521 | 0 | done->Run(); |
522 | 0 | } |
523 | | |
524 | | void ico::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_brpc_2fget_5ffavicon_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 ::brpc::GetFaviconRequest*>(request), |
534 | 0 | ::google::protobuf::down_cast< ::brpc::GetFaviconResponse*>(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& ico::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 ::brpc::GetFaviconRequest::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& ico::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 ::brpc::GetFaviconResponse::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 | | ico_Stub::ico_Stub(::google::protobuf::RpcChannel* channel) |
570 | 0 | : channel_(channel), owns_channel_(false) {} |
571 | | ico_Stub::ico_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 | ico_Stub::~ico_Stub() { |
577 | 0 | if (owns_channel_) delete channel_; |
578 | 0 | } |
579 | | |
580 | | void ico_Stub::default_method(::google::protobuf::RpcController* controller, |
581 | | const ::brpc::GetFaviconRequest* request, |
582 | | ::brpc::GetFaviconResponse* 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 brpc |
590 | | namespace google { |
591 | | namespace protobuf { |
592 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::GetFaviconRequest* Arena::CreateMaybeMessage< ::brpc::GetFaviconRequest >(Arena* arena) { |
593 | 0 | return Arena::CreateInternal< ::brpc::GetFaviconRequest >(arena); |
594 | 0 | } |
595 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::GetFaviconResponse* Arena::CreateMaybeMessage< ::brpc::GetFaviconResponse >(Arena* arena) { |
596 | 0 | return Arena::CreateInternal< ::brpc::GetFaviconResponse >(arena); |
597 | 0 | } |
598 | | } // namespace protobuf |
599 | | } // namespace google |
600 | | |
601 | | // @@protoc_insertion_point(global_scope) |