/src/brpc/build/test/v2.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: v2.proto |
3 | | |
4 | | #ifndef PROTOBUF_INCLUDED_v2_2eproto |
5 | | #define PROTOBUF_INCLUDED_v2_2eproto |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3006001 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/inlined_string_field.h> |
28 | | #include <google/protobuf/metadata.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/service.h> |
33 | | #include <google/protobuf/unknown_field_set.h> |
34 | | // @@protoc_insertion_point(includes) |
35 | | #define PROTOBUF_INTERNAL_EXPORT_protobuf_v2_2eproto |
36 | | |
37 | | namespace protobuf_v2_2eproto { |
38 | | // Internal implementation detail -- do not use these members. |
39 | | struct TableStruct { |
40 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
41 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
42 | | static const ::google::protobuf::internal::ParseTable schema[2]; |
43 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
44 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
45 | | static const ::google::protobuf::uint32 offsets[]; |
46 | | }; |
47 | | void AddDescriptors(); |
48 | | } // namespace protobuf_v2_2eproto |
49 | | namespace v2 { |
50 | | class EchoRequest; |
51 | | class EchoRequestDefaultTypeInternal; |
52 | | extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
53 | | class EchoResponse; |
54 | | class EchoResponseDefaultTypeInternal; |
55 | | extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
56 | | } // namespace v2 |
57 | | namespace google { |
58 | | namespace protobuf { |
59 | | template<> ::v2::EchoRequest* Arena::CreateMaybeMessage<::v2::EchoRequest>(Arena*); |
60 | | template<> ::v2::EchoResponse* Arena::CreateMaybeMessage<::v2::EchoResponse>(Arena*); |
61 | | } // namespace protobuf |
62 | | } // namespace google |
63 | | namespace v2 { |
64 | | |
65 | | // =================================================================== |
66 | | |
67 | | class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v2.EchoRequest) */ { |
68 | | public: |
69 | | EchoRequest(); |
70 | | virtual ~EchoRequest(); |
71 | | |
72 | | EchoRequest(const EchoRequest& from); |
73 | | |
74 | 0 | inline EchoRequest& operator=(const EchoRequest& from) { |
75 | 0 | CopyFrom(from); |
76 | 0 | return *this; |
77 | 0 | } |
78 | | #if LANG_CXX11 |
79 | | EchoRequest(EchoRequest&& from) noexcept |
80 | 0 | : EchoRequest() { |
81 | 0 | *this = ::std::move(from); |
82 | 0 | } |
83 | | |
84 | 0 | inline EchoRequest& operator=(EchoRequest&& from) noexcept { |
85 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
86 | 0 | if (this != &from) InternalSwap(&from); |
87 | 0 | } else { |
88 | 0 | CopyFrom(from); |
89 | 0 | } |
90 | 0 | return *this; |
91 | 0 | } |
92 | | #endif |
93 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
94 | 0 | return _internal_metadata_.unknown_fields(); |
95 | 0 | } |
96 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
97 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
98 | 0 | } |
99 | | |
100 | | static const ::google::protobuf::Descriptor* descriptor(); |
101 | | static const EchoRequest& default_instance(); |
102 | | |
103 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
104 | 0 | static inline const EchoRequest* internal_default_instance() { |
105 | 0 | return reinterpret_cast<const EchoRequest*>( |
106 | 0 | &_EchoRequest_default_instance_); |
107 | 0 | } |
108 | | static constexpr int kIndexInFileMessages = |
109 | | 0; |
110 | | |
111 | | void Swap(EchoRequest* other); |
112 | 0 | friend void swap(EchoRequest& a, EchoRequest& b) { |
113 | 0 | a.Swap(&b); |
114 | 0 | } |
115 | | |
116 | | // implements Message ---------------------------------------------- |
117 | | |
118 | 0 | inline EchoRequest* New() const final { |
119 | 0 | return CreateMaybeMessage<EchoRequest>(NULL); |
120 | 0 | } |
121 | | |
122 | 0 | EchoRequest* New(::google::protobuf::Arena* arena) const final { |
123 | 0 | return CreateMaybeMessage<EchoRequest>(arena); |
124 | 0 | } |
125 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
126 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
127 | | void CopyFrom(const EchoRequest& from); |
128 | | void MergeFrom(const EchoRequest& from); |
129 | | void Clear() final; |
130 | | bool IsInitialized() const final; |
131 | | |
132 | | size_t ByteSizeLong() const final; |
133 | | bool MergePartialFromCodedStream( |
134 | | ::google::protobuf::io::CodedInputStream* input) final; |
135 | | void SerializeWithCachedSizes( |
136 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
137 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
138 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
139 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
140 | | |
141 | | private: |
142 | | void SharedCtor(); |
143 | | void SharedDtor(); |
144 | | void SetCachedSize(int size) const final; |
145 | | void InternalSwap(EchoRequest* other); |
146 | | private: |
147 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
148 | 0 | return NULL; |
149 | 0 | } |
150 | 0 | inline void* MaybeArenaPtr() const { |
151 | 0 | return NULL; |
152 | 0 | } |
153 | | public: |
154 | | |
155 | | ::google::protobuf::Metadata GetMetadata() const final; |
156 | | |
157 | | // nested types ---------------------------------------------------- |
158 | | |
159 | | // accessors ------------------------------------------------------- |
160 | | |
161 | | // required int32 value = 1; |
162 | | bool has_value() const; |
163 | | void clear_value(); |
164 | | static const int kValueFieldNumber = 1; |
165 | | ::google::protobuf::int32 value() const; |
166 | | void set_value(::google::protobuf::int32 value); |
167 | | |
168 | | // @@protoc_insertion_point(class_scope:v2.EchoRequest) |
169 | | private: |
170 | | void set_has_value(); |
171 | | void clear_has_value(); |
172 | | |
173 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
174 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
175 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
176 | | ::google::protobuf::int32 value_; |
177 | | friend struct ::protobuf_v2_2eproto::TableStruct; |
178 | | }; |
179 | | // ------------------------------------------------------------------- |
180 | | |
181 | | class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v2.EchoResponse) */ { |
182 | | public: |
183 | | EchoResponse(); |
184 | | virtual ~EchoResponse(); |
185 | | |
186 | | EchoResponse(const EchoResponse& from); |
187 | | |
188 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
189 | 0 | CopyFrom(from); |
190 | 0 | return *this; |
191 | 0 | } |
192 | | #if LANG_CXX11 |
193 | | EchoResponse(EchoResponse&& from) noexcept |
194 | 0 | : EchoResponse() { |
195 | 0 | *this = ::std::move(from); |
196 | 0 | } |
197 | | |
198 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
199 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
200 | 0 | if (this != &from) InternalSwap(&from); |
201 | 0 | } else { |
202 | 0 | CopyFrom(from); |
203 | 0 | } |
204 | 0 | return *this; |
205 | 0 | } |
206 | | #endif |
207 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
208 | 0 | return _internal_metadata_.unknown_fields(); |
209 | 0 | } |
210 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
211 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
212 | 0 | } |
213 | | |
214 | | static const ::google::protobuf::Descriptor* descriptor(); |
215 | | static const EchoResponse& default_instance(); |
216 | | |
217 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
218 | 0 | static inline const EchoResponse* internal_default_instance() { |
219 | 0 | return reinterpret_cast<const EchoResponse*>( |
220 | 0 | &_EchoResponse_default_instance_); |
221 | 0 | } |
222 | | static constexpr int kIndexInFileMessages = |
223 | | 1; |
224 | | |
225 | | void Swap(EchoResponse* other); |
226 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
227 | 0 | a.Swap(&b); |
228 | 0 | } |
229 | | |
230 | | // implements Message ---------------------------------------------- |
231 | | |
232 | 0 | inline EchoResponse* New() const final { |
233 | 0 | return CreateMaybeMessage<EchoResponse>(NULL); |
234 | 0 | } |
235 | | |
236 | 0 | EchoResponse* New(::google::protobuf::Arena* arena) const final { |
237 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
238 | 0 | } |
239 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
240 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
241 | | void CopyFrom(const EchoResponse& from); |
242 | | void MergeFrom(const EchoResponse& from); |
243 | | void Clear() final; |
244 | | bool IsInitialized() const final; |
245 | | |
246 | | size_t ByteSizeLong() const final; |
247 | | bool MergePartialFromCodedStream( |
248 | | ::google::protobuf::io::CodedInputStream* input) final; |
249 | | void SerializeWithCachedSizes( |
250 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
251 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
252 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
253 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
254 | | |
255 | | private: |
256 | | void SharedCtor(); |
257 | | void SharedDtor(); |
258 | | void SetCachedSize(int size) const final; |
259 | | void InternalSwap(EchoResponse* other); |
260 | | private: |
261 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
262 | 0 | return NULL; |
263 | 0 | } |
264 | 0 | inline void* MaybeArenaPtr() const { |
265 | 0 | return NULL; |
266 | 0 | } |
267 | | public: |
268 | | |
269 | | ::google::protobuf::Metadata GetMetadata() const final; |
270 | | |
271 | | // nested types ---------------------------------------------------- |
272 | | |
273 | | // accessors ------------------------------------------------------- |
274 | | |
275 | | // required int32 value = 1; |
276 | | bool has_value() const; |
277 | | void clear_value(); |
278 | | static const int kValueFieldNumber = 1; |
279 | | ::google::protobuf::int32 value() const; |
280 | | void set_value(::google::protobuf::int32 value); |
281 | | |
282 | | // @@protoc_insertion_point(class_scope:v2.EchoResponse) |
283 | | private: |
284 | | void set_has_value(); |
285 | | void clear_has_value(); |
286 | | |
287 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
288 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
289 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
290 | | ::google::protobuf::int32 value_; |
291 | | friend struct ::protobuf_v2_2eproto::TableStruct; |
292 | | }; |
293 | | // =================================================================== |
294 | | |
295 | | class EchoService_Stub; |
296 | | |
297 | | class EchoService : public ::google::protobuf::Service { |
298 | | protected: |
299 | | // This class should be treated as an abstract interface. |
300 | 0 | inline EchoService() {}; |
301 | | public: |
302 | | virtual ~EchoService(); |
303 | | |
304 | | typedef EchoService_Stub Stub; |
305 | | |
306 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
307 | | |
308 | | virtual void Echo(::google::protobuf::RpcController* controller, |
309 | | const ::v2::EchoRequest* request, |
310 | | ::v2::EchoResponse* response, |
311 | | ::google::protobuf::Closure* done); |
312 | | |
313 | | // implements Service ---------------------------------------------- |
314 | | |
315 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
316 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
317 | | ::google::protobuf::RpcController* controller, |
318 | | const ::google::protobuf::Message* request, |
319 | | ::google::protobuf::Message* response, |
320 | | ::google::protobuf::Closure* done); |
321 | | const ::google::protobuf::Message& GetRequestPrototype( |
322 | | const ::google::protobuf::MethodDescriptor* method) const; |
323 | | const ::google::protobuf::Message& GetResponsePrototype( |
324 | | const ::google::protobuf::MethodDescriptor* method) const; |
325 | | |
326 | | private: |
327 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
328 | | }; |
329 | | |
330 | | class EchoService_Stub : public EchoService { |
331 | | public: |
332 | | EchoService_Stub(::google::protobuf::RpcChannel* channel); |
333 | | EchoService_Stub(::google::protobuf::RpcChannel* channel, |
334 | | ::google::protobuf::Service::ChannelOwnership ownership); |
335 | | ~EchoService_Stub(); |
336 | | |
337 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
338 | | |
339 | | // implements EchoService ------------------------------------------ |
340 | | |
341 | | void Echo(::google::protobuf::RpcController* controller, |
342 | | const ::v2::EchoRequest* request, |
343 | | ::v2::EchoResponse* response, |
344 | | ::google::protobuf::Closure* done); |
345 | | private: |
346 | | ::google::protobuf::RpcChannel* channel_; |
347 | | bool owns_channel_; |
348 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
349 | | }; |
350 | | |
351 | | |
352 | | // =================================================================== |
353 | | |
354 | | |
355 | | // =================================================================== |
356 | | |
357 | | #ifdef __GNUC__ |
358 | | #pragma GCC diagnostic push |
359 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
360 | | #endif // __GNUC__ |
361 | | // EchoRequest |
362 | | |
363 | | // required int32 value = 1; |
364 | 0 | inline bool EchoRequest::has_value() const { |
365 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
366 | 0 | } |
367 | 0 | inline void EchoRequest::set_has_value() { |
368 | 0 | _has_bits_[0] |= 0x00000001u; |
369 | 0 | } |
370 | 0 | inline void EchoRequest::clear_has_value() { |
371 | 0 | _has_bits_[0] &= ~0x00000001u; |
372 | 0 | } |
373 | 0 | inline void EchoRequest::clear_value() { |
374 | 0 | value_ = 0; |
375 | 0 | clear_has_value(); |
376 | 0 | } |
377 | 0 | inline ::google::protobuf::int32 EchoRequest::value() const { |
378 | | // @@protoc_insertion_point(field_get:v2.EchoRequest.value) |
379 | 0 | return value_; |
380 | 0 | } |
381 | 0 | inline void EchoRequest::set_value(::google::protobuf::int32 value) { |
382 | 0 | set_has_value(); |
383 | 0 | value_ = value; |
384 | | // @@protoc_insertion_point(field_set:v2.EchoRequest.value) |
385 | 0 | } |
386 | | |
387 | | // ------------------------------------------------------------------- |
388 | | |
389 | | // EchoResponse |
390 | | |
391 | | // required int32 value = 1; |
392 | 0 | inline bool EchoResponse::has_value() const { |
393 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
394 | 0 | } |
395 | 0 | inline void EchoResponse::set_has_value() { |
396 | 0 | _has_bits_[0] |= 0x00000001u; |
397 | 0 | } |
398 | 0 | inline void EchoResponse::clear_has_value() { |
399 | 0 | _has_bits_[0] &= ~0x00000001u; |
400 | 0 | } |
401 | 0 | inline void EchoResponse::clear_value() { |
402 | 0 | value_ = 0; |
403 | 0 | clear_has_value(); |
404 | 0 | } |
405 | 0 | inline ::google::protobuf::int32 EchoResponse::value() const { |
406 | | // @@protoc_insertion_point(field_get:v2.EchoResponse.value) |
407 | 0 | return value_; |
408 | 0 | } |
409 | 0 | inline void EchoResponse::set_value(::google::protobuf::int32 value) { |
410 | 0 | set_has_value(); |
411 | 0 | value_ = value; |
412 | | // @@protoc_insertion_point(field_set:v2.EchoResponse.value) |
413 | 0 | } |
414 | | |
415 | | #ifdef __GNUC__ |
416 | | #pragma GCC diagnostic pop |
417 | | #endif // __GNUC__ |
418 | | // ------------------------------------------------------------------- |
419 | | |
420 | | |
421 | | // @@protoc_insertion_point(namespace_scope) |
422 | | |
423 | | } // namespace v2 |
424 | | |
425 | | // @@protoc_insertion_point(global_scope) |
426 | | |
427 | | #endif // PROTOBUF_INCLUDED_v2_2eproto |