/src/brpc/build/test/echo.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: echo.proto |
3 | | |
4 | | #ifndef PROTOBUF_INCLUDED_echo_2eproto |
5 | | #define PROTOBUF_INCLUDED_echo_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/generated_enum_reflection.h> |
33 | | #include <google/protobuf/service.h> |
34 | | #include <google/protobuf/unknown_field_set.h> |
35 | | #include "idl_options.pb.h" |
36 | | // @@protoc_insertion_point(includes) |
37 | | #define PROTOBUF_INTERNAL_EXPORT_protobuf_echo_2eproto |
38 | | |
39 | | namespace protobuf_echo_2eproto { |
40 | | // Internal implementation detail -- do not use these members. |
41 | | struct TableStruct { |
42 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
43 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
44 | | static const ::google::protobuf::internal::ParseTable schema[10]; |
45 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
46 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
47 | | static const ::google::protobuf::uint32 offsets[]; |
48 | | }; |
49 | | void AddDescriptors(); |
50 | | } // namespace protobuf_echo_2eproto |
51 | | namespace test { |
52 | | class BytesRequest; |
53 | | class BytesRequestDefaultTypeInternal; |
54 | | extern BytesRequestDefaultTypeInternal _BytesRequest_default_instance_; |
55 | | class BytesResponse; |
56 | | class BytesResponseDefaultTypeInternal; |
57 | | extern BytesResponseDefaultTypeInternal _BytesResponse_default_instance_; |
58 | | class ComboRequest; |
59 | | class ComboRequestDefaultTypeInternal; |
60 | | extern ComboRequestDefaultTypeInternal _ComboRequest_default_instance_; |
61 | | class ComboResponse; |
62 | | class ComboResponseDefaultTypeInternal; |
63 | | extern ComboResponseDefaultTypeInternal _ComboResponse_default_instance_; |
64 | | class EchoRequest; |
65 | | class EchoRequestDefaultTypeInternal; |
66 | | extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
67 | | class EchoResponse; |
68 | | class EchoResponseDefaultTypeInternal; |
69 | | extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
70 | | class HttpRequest; |
71 | | class HttpRequestDefaultTypeInternal; |
72 | | extern HttpRequestDefaultTypeInternal _HttpRequest_default_instance_; |
73 | | class HttpResponse; |
74 | | class HttpResponseDefaultTypeInternal; |
75 | | extern HttpResponseDefaultTypeInternal _HttpResponse_default_instance_; |
76 | | class Message1; |
77 | | class Message1DefaultTypeInternal; |
78 | | extern Message1DefaultTypeInternal _Message1_default_instance_; |
79 | | class Message2; |
80 | | class Message2DefaultTypeInternal; |
81 | | extern Message2DefaultTypeInternal _Message2_default_instance_; |
82 | | } // namespace test |
83 | | namespace google { |
84 | | namespace protobuf { |
85 | | template<> ::test::BytesRequest* Arena::CreateMaybeMessage<::test::BytesRequest>(Arena*); |
86 | | template<> ::test::BytesResponse* Arena::CreateMaybeMessage<::test::BytesResponse>(Arena*); |
87 | | template<> ::test::ComboRequest* Arena::CreateMaybeMessage<::test::ComboRequest>(Arena*); |
88 | | template<> ::test::ComboResponse* Arena::CreateMaybeMessage<::test::ComboResponse>(Arena*); |
89 | | template<> ::test::EchoRequest* Arena::CreateMaybeMessage<::test::EchoRequest>(Arena*); |
90 | | template<> ::test::EchoResponse* Arena::CreateMaybeMessage<::test::EchoResponse>(Arena*); |
91 | | template<> ::test::HttpRequest* Arena::CreateMaybeMessage<::test::HttpRequest>(Arena*); |
92 | | template<> ::test::HttpResponse* Arena::CreateMaybeMessage<::test::HttpResponse>(Arena*); |
93 | | template<> ::test::Message1* Arena::CreateMaybeMessage<::test::Message1>(Arena*); |
94 | | template<> ::test::Message2* Arena::CreateMaybeMessage<::test::Message2>(Arena*); |
95 | | } // namespace protobuf |
96 | | } // namespace google |
97 | | namespace test { |
98 | | |
99 | | enum State0 { |
100 | | STATE0_NUM_0 = 0, |
101 | | STATE0_NUM_1 = 1, |
102 | | STATE0_NUM_2 = 2 |
103 | | }; |
104 | | bool State0_IsValid(int value); |
105 | | const State0 State0_MIN = STATE0_NUM_0; |
106 | | const State0 State0_MAX = STATE0_NUM_2; |
107 | | const int State0_ARRAYSIZE = State0_MAX + 1; |
108 | | |
109 | | const ::google::protobuf::EnumDescriptor* State0_descriptor(); |
110 | 0 | inline const ::std::string& State0_Name(State0 value) { |
111 | 0 | return ::google::protobuf::internal::NameOfEnum( |
112 | 0 | State0_descriptor(), value); |
113 | 0 | } |
114 | | inline bool State0_Parse( |
115 | 0 | const ::std::string& name, State0* value) { |
116 | 0 | return ::google::protobuf::internal::ParseNamedEnum<State0>( |
117 | 0 | State0_descriptor(), name, value); |
118 | 0 | } |
119 | | enum State1 { |
120 | | STATE1_NUM_0 = 0, |
121 | | STATE1_NUM_1 = 1 |
122 | | }; |
123 | | bool State1_IsValid(int value); |
124 | | const State1 State1_MIN = STATE1_NUM_0; |
125 | | const State1 State1_MAX = STATE1_NUM_1; |
126 | | const int State1_ARRAYSIZE = State1_MAX + 1; |
127 | | |
128 | | const ::google::protobuf::EnumDescriptor* State1_descriptor(); |
129 | 0 | inline const ::std::string& State1_Name(State1 value) { |
130 | 0 | return ::google::protobuf::internal::NameOfEnum( |
131 | 0 | State1_descriptor(), value); |
132 | 0 | } |
133 | | inline bool State1_Parse( |
134 | 0 | const ::std::string& name, State1* value) { |
135 | 0 | return ::google::protobuf::internal::ParseNamedEnum<State1>( |
136 | 0 | State1_descriptor(), name, value); |
137 | 0 | } |
138 | | // =================================================================== |
139 | | |
140 | | class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.EchoRequest) */ { |
141 | | public: |
142 | | EchoRequest(); |
143 | | virtual ~EchoRequest(); |
144 | | |
145 | | EchoRequest(const EchoRequest& from); |
146 | | |
147 | 0 | inline EchoRequest& operator=(const EchoRequest& from) { |
148 | 0 | CopyFrom(from); |
149 | 0 | return *this; |
150 | 0 | } |
151 | | #if LANG_CXX11 |
152 | | EchoRequest(EchoRequest&& from) noexcept |
153 | 0 | : EchoRequest() { |
154 | 0 | *this = ::std::move(from); |
155 | 0 | } |
156 | | |
157 | 0 | inline EchoRequest& operator=(EchoRequest&& from) noexcept { |
158 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
159 | 0 | if (this != &from) InternalSwap(&from); |
160 | 0 | } else { |
161 | 0 | CopyFrom(from); |
162 | 0 | } |
163 | 0 | return *this; |
164 | 0 | } |
165 | | #endif |
166 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
167 | 0 | return _internal_metadata_.unknown_fields(); |
168 | 0 | } |
169 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
170 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
171 | 0 | } |
172 | | |
173 | | static const ::google::protobuf::Descriptor* descriptor(); |
174 | | static const EchoRequest& default_instance(); |
175 | | |
176 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
177 | 0 | static inline const EchoRequest* internal_default_instance() { |
178 | 0 | return reinterpret_cast<const EchoRequest*>( |
179 | 0 | &_EchoRequest_default_instance_); |
180 | 0 | } |
181 | | static constexpr int kIndexInFileMessages = |
182 | | 0; |
183 | | |
184 | | void Swap(EchoRequest* other); |
185 | 0 | friend void swap(EchoRequest& a, EchoRequest& b) { |
186 | 0 | a.Swap(&b); |
187 | 0 | } |
188 | | |
189 | | // implements Message ---------------------------------------------- |
190 | | |
191 | 0 | inline EchoRequest* New() const final { |
192 | 0 | return CreateMaybeMessage<EchoRequest>(NULL); |
193 | 0 | } |
194 | | |
195 | 0 | EchoRequest* New(::google::protobuf::Arena* arena) const final { |
196 | 0 | return CreateMaybeMessage<EchoRequest>(arena); |
197 | 0 | } |
198 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
199 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
200 | | void CopyFrom(const EchoRequest& from); |
201 | | void MergeFrom(const EchoRequest& from); |
202 | | void Clear() final; |
203 | | bool IsInitialized() const final; |
204 | | |
205 | | size_t ByteSizeLong() const final; |
206 | | bool MergePartialFromCodedStream( |
207 | | ::google::protobuf::io::CodedInputStream* input) final; |
208 | | void SerializeWithCachedSizes( |
209 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
210 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
211 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
212 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
213 | | |
214 | | private: |
215 | | void SharedCtor(); |
216 | | void SharedDtor(); |
217 | | void SetCachedSize(int size) const final; |
218 | | void InternalSwap(EchoRequest* other); |
219 | | private: |
220 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
221 | 0 | return NULL; |
222 | 0 | } |
223 | 0 | inline void* MaybeArenaPtr() const { |
224 | 0 | return NULL; |
225 | 0 | } |
226 | | public: |
227 | | |
228 | | ::google::protobuf::Metadata GetMetadata() const final; |
229 | | |
230 | | // nested types ---------------------------------------------------- |
231 | | |
232 | | // accessors ------------------------------------------------------- |
233 | | |
234 | | // required string message = 1; |
235 | | bool has_message() const; |
236 | | void clear_message(); |
237 | | static const int kMessageFieldNumber = 1; |
238 | | const ::std::string& message() const; |
239 | | void set_message(const ::std::string& value); |
240 | | #if LANG_CXX11 |
241 | | void set_message(::std::string&& value); |
242 | | #endif |
243 | | void set_message(const char* value); |
244 | | void set_message(const char* value, size_t size); |
245 | | ::std::string* mutable_message(); |
246 | | ::std::string* release_message(); |
247 | | void set_allocated_message(::std::string* message); |
248 | | |
249 | | // optional int32 code = 2; |
250 | | bool has_code() const; |
251 | | void clear_code(); |
252 | | static const int kCodeFieldNumber = 2; |
253 | | ::google::protobuf::int32 code() const; |
254 | | void set_code(::google::protobuf::int32 value); |
255 | | |
256 | | // optional bool close_fd = 3; |
257 | | bool has_close_fd() const; |
258 | | void clear_close_fd(); |
259 | | static const int kCloseFdFieldNumber = 3; |
260 | | bool close_fd() const; |
261 | | void set_close_fd(bool value); |
262 | | |
263 | | // optional int32 sleep_us = 4; |
264 | | bool has_sleep_us() const; |
265 | | void clear_sleep_us(); |
266 | | static const int kSleepUsFieldNumber = 4; |
267 | | ::google::protobuf::int32 sleep_us() const; |
268 | | void set_sleep_us(::google::protobuf::int32 value); |
269 | | |
270 | | // optional int32 server_fail = 5; |
271 | | bool has_server_fail() const; |
272 | | void clear_server_fail(); |
273 | | static const int kServerFailFieldNumber = 5; |
274 | | ::google::protobuf::int32 server_fail() const; |
275 | | void set_server_fail(::google::protobuf::int32 value); |
276 | | |
277 | | // @@protoc_insertion_point(class_scope:test.EchoRequest) |
278 | | private: |
279 | | void set_has_message(); |
280 | | void clear_has_message(); |
281 | | void set_has_code(); |
282 | | void clear_has_code(); |
283 | | void set_has_close_fd(); |
284 | | void clear_has_close_fd(); |
285 | | void set_has_sleep_us(); |
286 | | void clear_has_sleep_us(); |
287 | | void set_has_server_fail(); |
288 | | void clear_has_server_fail(); |
289 | | |
290 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
291 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
292 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
293 | | ::google::protobuf::internal::ArenaStringPtr message_; |
294 | | ::google::protobuf::int32 code_; |
295 | | bool close_fd_; |
296 | | ::google::protobuf::int32 sleep_us_; |
297 | | ::google::protobuf::int32 server_fail_; |
298 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
299 | | }; |
300 | | // ------------------------------------------------------------------- |
301 | | |
302 | | class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.EchoResponse) */ { |
303 | | public: |
304 | | EchoResponse(); |
305 | | virtual ~EchoResponse(); |
306 | | |
307 | | EchoResponse(const EchoResponse& from); |
308 | | |
309 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
310 | 0 | CopyFrom(from); |
311 | 0 | return *this; |
312 | 0 | } |
313 | | #if LANG_CXX11 |
314 | | EchoResponse(EchoResponse&& from) noexcept |
315 | 0 | : EchoResponse() { |
316 | 0 | *this = ::std::move(from); |
317 | 0 | } |
318 | | |
319 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
320 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
321 | 0 | if (this != &from) InternalSwap(&from); |
322 | 0 | } else { |
323 | 0 | CopyFrom(from); |
324 | 0 | } |
325 | 0 | return *this; |
326 | 0 | } |
327 | | #endif |
328 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
329 | 0 | return _internal_metadata_.unknown_fields(); |
330 | 0 | } |
331 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
332 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
333 | 0 | } |
334 | | |
335 | | static const ::google::protobuf::Descriptor* descriptor(); |
336 | | static const EchoResponse& default_instance(); |
337 | | |
338 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
339 | 0 | static inline const EchoResponse* internal_default_instance() { |
340 | 0 | return reinterpret_cast<const EchoResponse*>( |
341 | 0 | &_EchoResponse_default_instance_); |
342 | 0 | } |
343 | | static constexpr int kIndexInFileMessages = |
344 | | 1; |
345 | | |
346 | | void Swap(EchoResponse* other); |
347 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
348 | 0 | a.Swap(&b); |
349 | 0 | } |
350 | | |
351 | | // implements Message ---------------------------------------------- |
352 | | |
353 | 0 | inline EchoResponse* New() const final { |
354 | 0 | return CreateMaybeMessage<EchoResponse>(NULL); |
355 | 0 | } |
356 | | |
357 | 0 | EchoResponse* New(::google::protobuf::Arena* arena) const final { |
358 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
359 | 0 | } |
360 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
361 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
362 | | void CopyFrom(const EchoResponse& from); |
363 | | void MergeFrom(const EchoResponse& from); |
364 | | void Clear() final; |
365 | | bool IsInitialized() const final; |
366 | | |
367 | | size_t ByteSizeLong() const final; |
368 | | bool MergePartialFromCodedStream( |
369 | | ::google::protobuf::io::CodedInputStream* input) final; |
370 | | void SerializeWithCachedSizes( |
371 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
372 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
373 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
374 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
375 | | |
376 | | private: |
377 | | void SharedCtor(); |
378 | | void SharedDtor(); |
379 | | void SetCachedSize(int size) const final; |
380 | | void InternalSwap(EchoResponse* other); |
381 | | private: |
382 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
383 | 0 | return NULL; |
384 | 0 | } |
385 | 0 | inline void* MaybeArenaPtr() const { |
386 | 0 | return NULL; |
387 | 0 | } |
388 | | public: |
389 | | |
390 | | ::google::protobuf::Metadata GetMetadata() const final; |
391 | | |
392 | | // nested types ---------------------------------------------------- |
393 | | |
394 | | // accessors ------------------------------------------------------- |
395 | | |
396 | | // repeated int32 code_list = 2; |
397 | | int code_list_size() const; |
398 | | void clear_code_list(); |
399 | | static const int kCodeListFieldNumber = 2; |
400 | | ::google::protobuf::int32 code_list(int index) const; |
401 | | void set_code_list(int index, ::google::protobuf::int32 value); |
402 | | void add_code_list(::google::protobuf::int32 value); |
403 | | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
404 | | code_list() const; |
405 | | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
406 | | mutable_code_list(); |
407 | | |
408 | | // required string message = 1; |
409 | | bool has_message() const; |
410 | | void clear_message(); |
411 | | static const int kMessageFieldNumber = 1; |
412 | | const ::std::string& message() const; |
413 | | void set_message(const ::std::string& value); |
414 | | #if LANG_CXX11 |
415 | | void set_message(::std::string&& value); |
416 | | #endif |
417 | | void set_message(const char* value); |
418 | | void set_message(const char* value, size_t size); |
419 | | ::std::string* mutable_message(); |
420 | | ::std::string* release_message(); |
421 | | void set_allocated_message(::std::string* message); |
422 | | |
423 | | // optional uint64 receiving_socket_id = 3; |
424 | | bool has_receiving_socket_id() const; |
425 | | void clear_receiving_socket_id(); |
426 | | static const int kReceivingSocketIdFieldNumber = 3; |
427 | | ::google::protobuf::uint64 receiving_socket_id() const; |
428 | | void set_receiving_socket_id(::google::protobuf::uint64 value); |
429 | | |
430 | | // @@protoc_insertion_point(class_scope:test.EchoResponse) |
431 | | private: |
432 | | void set_has_message(); |
433 | | void clear_has_message(); |
434 | | void set_has_receiving_socket_id(); |
435 | | void clear_has_receiving_socket_id(); |
436 | | |
437 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
438 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
439 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
440 | | ::google::protobuf::RepeatedField< ::google::protobuf::int32 > code_list_; |
441 | | ::google::protobuf::internal::ArenaStringPtr message_; |
442 | | ::google::protobuf::uint64 receiving_socket_id_; |
443 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
444 | | }; |
445 | | // ------------------------------------------------------------------- |
446 | | |
447 | | class ComboRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.ComboRequest) */ { |
448 | | public: |
449 | | ComboRequest(); |
450 | | virtual ~ComboRequest(); |
451 | | |
452 | | ComboRequest(const ComboRequest& from); |
453 | | |
454 | 0 | inline ComboRequest& operator=(const ComboRequest& from) { |
455 | 0 | CopyFrom(from); |
456 | 0 | return *this; |
457 | 0 | } |
458 | | #if LANG_CXX11 |
459 | | ComboRequest(ComboRequest&& from) noexcept |
460 | 0 | : ComboRequest() { |
461 | 0 | *this = ::std::move(from); |
462 | 0 | } |
463 | | |
464 | 0 | inline ComboRequest& operator=(ComboRequest&& from) noexcept { |
465 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
466 | 0 | if (this != &from) InternalSwap(&from); |
467 | 0 | } else { |
468 | 0 | CopyFrom(from); |
469 | 0 | } |
470 | 0 | return *this; |
471 | 0 | } |
472 | | #endif |
473 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
474 | 0 | return _internal_metadata_.unknown_fields(); |
475 | 0 | } |
476 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
477 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
478 | 0 | } |
479 | | |
480 | | static const ::google::protobuf::Descriptor* descriptor(); |
481 | | static const ComboRequest& default_instance(); |
482 | | |
483 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
484 | 0 | static inline const ComboRequest* internal_default_instance() { |
485 | 0 | return reinterpret_cast<const ComboRequest*>( |
486 | 0 | &_ComboRequest_default_instance_); |
487 | 0 | } |
488 | | static constexpr int kIndexInFileMessages = |
489 | | 2; |
490 | | |
491 | | void Swap(ComboRequest* other); |
492 | 0 | friend void swap(ComboRequest& a, ComboRequest& b) { |
493 | 0 | a.Swap(&b); |
494 | 0 | } |
495 | | |
496 | | // implements Message ---------------------------------------------- |
497 | | |
498 | 0 | inline ComboRequest* New() const final { |
499 | 0 | return CreateMaybeMessage<ComboRequest>(NULL); |
500 | 0 | } |
501 | | |
502 | 0 | ComboRequest* New(::google::protobuf::Arena* arena) const final { |
503 | 0 | return CreateMaybeMessage<ComboRequest>(arena); |
504 | 0 | } |
505 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
506 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
507 | | void CopyFrom(const ComboRequest& from); |
508 | | void MergeFrom(const ComboRequest& from); |
509 | | void Clear() final; |
510 | | bool IsInitialized() const final; |
511 | | |
512 | | size_t ByteSizeLong() const final; |
513 | | bool MergePartialFromCodedStream( |
514 | | ::google::protobuf::io::CodedInputStream* input) final; |
515 | | void SerializeWithCachedSizes( |
516 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
517 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
518 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
519 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
520 | | |
521 | | private: |
522 | | void SharedCtor(); |
523 | | void SharedDtor(); |
524 | | void SetCachedSize(int size) const final; |
525 | | void InternalSwap(ComboRequest* other); |
526 | | private: |
527 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
528 | 0 | return NULL; |
529 | 0 | } |
530 | 0 | inline void* MaybeArenaPtr() const { |
531 | 0 | return NULL; |
532 | 0 | } |
533 | | public: |
534 | | |
535 | | ::google::protobuf::Metadata GetMetadata() const final; |
536 | | |
537 | | // nested types ---------------------------------------------------- |
538 | | |
539 | | // accessors ------------------------------------------------------- |
540 | | |
541 | | // repeated .test.EchoRequest requests = 1; |
542 | | int requests_size() const; |
543 | | void clear_requests(); |
544 | | static const int kRequestsFieldNumber = 1; |
545 | | ::test::EchoRequest* mutable_requests(int index); |
546 | | ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >* |
547 | | mutable_requests(); |
548 | | const ::test::EchoRequest& requests(int index) const; |
549 | | ::test::EchoRequest* add_requests(); |
550 | | const ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >& |
551 | | requests() const; |
552 | | |
553 | | // @@protoc_insertion_point(class_scope:test.ComboRequest) |
554 | | private: |
555 | | |
556 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
557 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
558 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
559 | | ::google::protobuf::RepeatedPtrField< ::test::EchoRequest > requests_; |
560 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
561 | | }; |
562 | | // ------------------------------------------------------------------- |
563 | | |
564 | | class BytesRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.BytesRequest) */ { |
565 | | public: |
566 | | BytesRequest(); |
567 | | virtual ~BytesRequest(); |
568 | | |
569 | | BytesRequest(const BytesRequest& from); |
570 | | |
571 | 0 | inline BytesRequest& operator=(const BytesRequest& from) { |
572 | 0 | CopyFrom(from); |
573 | 0 | return *this; |
574 | 0 | } |
575 | | #if LANG_CXX11 |
576 | | BytesRequest(BytesRequest&& from) noexcept |
577 | 0 | : BytesRequest() { |
578 | 0 | *this = ::std::move(from); |
579 | 0 | } |
580 | | |
581 | 0 | inline BytesRequest& operator=(BytesRequest&& from) noexcept { |
582 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
583 | 0 | if (this != &from) InternalSwap(&from); |
584 | 0 | } else { |
585 | 0 | CopyFrom(from); |
586 | 0 | } |
587 | 0 | return *this; |
588 | 0 | } |
589 | | #endif |
590 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
591 | 0 | return _internal_metadata_.unknown_fields(); |
592 | 0 | } |
593 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
594 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
595 | 0 | } |
596 | | |
597 | | static const ::google::protobuf::Descriptor* descriptor(); |
598 | | static const BytesRequest& default_instance(); |
599 | | |
600 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
601 | 0 | static inline const BytesRequest* internal_default_instance() { |
602 | 0 | return reinterpret_cast<const BytesRequest*>( |
603 | 0 | &_BytesRequest_default_instance_); |
604 | 0 | } |
605 | | static constexpr int kIndexInFileMessages = |
606 | | 3; |
607 | | |
608 | | void Swap(BytesRequest* other); |
609 | 0 | friend void swap(BytesRequest& a, BytesRequest& b) { |
610 | 0 | a.Swap(&b); |
611 | 0 | } |
612 | | |
613 | | // implements Message ---------------------------------------------- |
614 | | |
615 | 0 | inline BytesRequest* New() const final { |
616 | 0 | return CreateMaybeMessage<BytesRequest>(NULL); |
617 | 0 | } |
618 | | |
619 | 0 | BytesRequest* New(::google::protobuf::Arena* arena) const final { |
620 | 0 | return CreateMaybeMessage<BytesRequest>(arena); |
621 | 0 | } |
622 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
623 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
624 | | void CopyFrom(const BytesRequest& from); |
625 | | void MergeFrom(const BytesRequest& from); |
626 | | void Clear() final; |
627 | | bool IsInitialized() const final; |
628 | | |
629 | | size_t ByteSizeLong() const final; |
630 | | bool MergePartialFromCodedStream( |
631 | | ::google::protobuf::io::CodedInputStream* input) final; |
632 | | void SerializeWithCachedSizes( |
633 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
634 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
635 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
636 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
637 | | |
638 | | private: |
639 | | void SharedCtor(); |
640 | | void SharedDtor(); |
641 | | void SetCachedSize(int size) const final; |
642 | | void InternalSwap(BytesRequest* other); |
643 | | private: |
644 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
645 | 0 | return NULL; |
646 | 0 | } |
647 | 0 | inline void* MaybeArenaPtr() const { |
648 | 0 | return NULL; |
649 | 0 | } |
650 | | public: |
651 | | |
652 | | ::google::protobuf::Metadata GetMetadata() const final; |
653 | | |
654 | | // nested types ---------------------------------------------------- |
655 | | |
656 | | // accessors ------------------------------------------------------- |
657 | | |
658 | | // required bytes databytes = 1; |
659 | | bool has_databytes() const; |
660 | | void clear_databytes(); |
661 | | static const int kDatabytesFieldNumber = 1; |
662 | | const ::std::string& databytes() const; |
663 | | void set_databytes(const ::std::string& value); |
664 | | #if LANG_CXX11 |
665 | | void set_databytes(::std::string&& value); |
666 | | #endif |
667 | | void set_databytes(const char* value); |
668 | | void set_databytes(const void* value, size_t size); |
669 | | ::std::string* mutable_databytes(); |
670 | | ::std::string* release_databytes(); |
671 | | void set_allocated_databytes(::std::string* databytes); |
672 | | |
673 | | // @@protoc_insertion_point(class_scope:test.BytesRequest) |
674 | | private: |
675 | | void set_has_databytes(); |
676 | | void clear_has_databytes(); |
677 | | |
678 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
679 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
680 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
681 | | ::google::protobuf::internal::ArenaStringPtr databytes_; |
682 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
683 | | }; |
684 | | // ------------------------------------------------------------------- |
685 | | |
686 | | class BytesResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.BytesResponse) */ { |
687 | | public: |
688 | | BytesResponse(); |
689 | | virtual ~BytesResponse(); |
690 | | |
691 | | BytesResponse(const BytesResponse& from); |
692 | | |
693 | 0 | inline BytesResponse& operator=(const BytesResponse& from) { |
694 | 0 | CopyFrom(from); |
695 | 0 | return *this; |
696 | 0 | } |
697 | | #if LANG_CXX11 |
698 | | BytesResponse(BytesResponse&& from) noexcept |
699 | 0 | : BytesResponse() { |
700 | 0 | *this = ::std::move(from); |
701 | 0 | } |
702 | | |
703 | 0 | inline BytesResponse& operator=(BytesResponse&& from) noexcept { |
704 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
705 | 0 | if (this != &from) InternalSwap(&from); |
706 | 0 | } else { |
707 | 0 | CopyFrom(from); |
708 | 0 | } |
709 | 0 | return *this; |
710 | 0 | } |
711 | | #endif |
712 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
713 | 0 | return _internal_metadata_.unknown_fields(); |
714 | 0 | } |
715 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
716 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
717 | 0 | } |
718 | | |
719 | | static const ::google::protobuf::Descriptor* descriptor(); |
720 | | static const BytesResponse& default_instance(); |
721 | | |
722 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
723 | 0 | static inline const BytesResponse* internal_default_instance() { |
724 | 0 | return reinterpret_cast<const BytesResponse*>( |
725 | 0 | &_BytesResponse_default_instance_); |
726 | 0 | } |
727 | | static constexpr int kIndexInFileMessages = |
728 | | 4; |
729 | | |
730 | | void Swap(BytesResponse* other); |
731 | 0 | friend void swap(BytesResponse& a, BytesResponse& b) { |
732 | 0 | a.Swap(&b); |
733 | 0 | } |
734 | | |
735 | | // implements Message ---------------------------------------------- |
736 | | |
737 | 0 | inline BytesResponse* New() const final { |
738 | 0 | return CreateMaybeMessage<BytesResponse>(NULL); |
739 | 0 | } |
740 | | |
741 | 0 | BytesResponse* New(::google::protobuf::Arena* arena) const final { |
742 | 0 | return CreateMaybeMessage<BytesResponse>(arena); |
743 | 0 | } |
744 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
745 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
746 | | void CopyFrom(const BytesResponse& from); |
747 | | void MergeFrom(const BytesResponse& from); |
748 | | void Clear() final; |
749 | | bool IsInitialized() const final; |
750 | | |
751 | | size_t ByteSizeLong() const final; |
752 | | bool MergePartialFromCodedStream( |
753 | | ::google::protobuf::io::CodedInputStream* input) final; |
754 | | void SerializeWithCachedSizes( |
755 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
756 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
757 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
758 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
759 | | |
760 | | private: |
761 | | void SharedCtor(); |
762 | | void SharedDtor(); |
763 | | void SetCachedSize(int size) const final; |
764 | | void InternalSwap(BytesResponse* other); |
765 | | private: |
766 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
767 | 0 | return NULL; |
768 | 0 | } |
769 | 0 | inline void* MaybeArenaPtr() const { |
770 | 0 | return NULL; |
771 | 0 | } |
772 | | public: |
773 | | |
774 | | ::google::protobuf::Metadata GetMetadata() const final; |
775 | | |
776 | | // nested types ---------------------------------------------------- |
777 | | |
778 | | // accessors ------------------------------------------------------- |
779 | | |
780 | | // required bytes databytes = 1; |
781 | | bool has_databytes() const; |
782 | | void clear_databytes(); |
783 | | static const int kDatabytesFieldNumber = 1; |
784 | | const ::std::string& databytes() const; |
785 | | void set_databytes(const ::std::string& value); |
786 | | #if LANG_CXX11 |
787 | | void set_databytes(::std::string&& value); |
788 | | #endif |
789 | | void set_databytes(const char* value); |
790 | | void set_databytes(const void* value, size_t size); |
791 | | ::std::string* mutable_databytes(); |
792 | | ::std::string* release_databytes(); |
793 | | void set_allocated_databytes(::std::string* databytes); |
794 | | |
795 | | // @@protoc_insertion_point(class_scope:test.BytesResponse) |
796 | | private: |
797 | | void set_has_databytes(); |
798 | | void clear_has_databytes(); |
799 | | |
800 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
801 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
802 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
803 | | ::google::protobuf::internal::ArenaStringPtr databytes_; |
804 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
805 | | }; |
806 | | // ------------------------------------------------------------------- |
807 | | |
808 | | class ComboResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.ComboResponse) */ { |
809 | | public: |
810 | | ComboResponse(); |
811 | | virtual ~ComboResponse(); |
812 | | |
813 | | ComboResponse(const ComboResponse& from); |
814 | | |
815 | 0 | inline ComboResponse& operator=(const ComboResponse& from) { |
816 | 0 | CopyFrom(from); |
817 | 0 | return *this; |
818 | 0 | } |
819 | | #if LANG_CXX11 |
820 | | ComboResponse(ComboResponse&& from) noexcept |
821 | 0 | : ComboResponse() { |
822 | 0 | *this = ::std::move(from); |
823 | 0 | } |
824 | | |
825 | 0 | inline ComboResponse& operator=(ComboResponse&& from) noexcept { |
826 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
827 | 0 | if (this != &from) InternalSwap(&from); |
828 | 0 | } else { |
829 | 0 | CopyFrom(from); |
830 | 0 | } |
831 | 0 | return *this; |
832 | 0 | } |
833 | | #endif |
834 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
835 | 0 | return _internal_metadata_.unknown_fields(); |
836 | 0 | } |
837 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
838 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
839 | 0 | } |
840 | | |
841 | | static const ::google::protobuf::Descriptor* descriptor(); |
842 | | static const ComboResponse& default_instance(); |
843 | | |
844 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
845 | 0 | static inline const ComboResponse* internal_default_instance() { |
846 | 0 | return reinterpret_cast<const ComboResponse*>( |
847 | 0 | &_ComboResponse_default_instance_); |
848 | 0 | } |
849 | | static constexpr int kIndexInFileMessages = |
850 | | 5; |
851 | | |
852 | | void Swap(ComboResponse* other); |
853 | 0 | friend void swap(ComboResponse& a, ComboResponse& b) { |
854 | 0 | a.Swap(&b); |
855 | 0 | } |
856 | | |
857 | | // implements Message ---------------------------------------------- |
858 | | |
859 | 0 | inline ComboResponse* New() const final { |
860 | 0 | return CreateMaybeMessage<ComboResponse>(NULL); |
861 | 0 | } |
862 | | |
863 | 0 | ComboResponse* New(::google::protobuf::Arena* arena) const final { |
864 | 0 | return CreateMaybeMessage<ComboResponse>(arena); |
865 | 0 | } |
866 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
867 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
868 | | void CopyFrom(const ComboResponse& from); |
869 | | void MergeFrom(const ComboResponse& from); |
870 | | void Clear() final; |
871 | | bool IsInitialized() const final; |
872 | | |
873 | | size_t ByteSizeLong() const final; |
874 | | bool MergePartialFromCodedStream( |
875 | | ::google::protobuf::io::CodedInputStream* input) final; |
876 | | void SerializeWithCachedSizes( |
877 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
878 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
879 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
880 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
881 | | |
882 | | private: |
883 | | void SharedCtor(); |
884 | | void SharedDtor(); |
885 | | void SetCachedSize(int size) const final; |
886 | | void InternalSwap(ComboResponse* other); |
887 | | private: |
888 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
889 | 0 | return NULL; |
890 | 0 | } |
891 | 0 | inline void* MaybeArenaPtr() const { |
892 | 0 | return NULL; |
893 | 0 | } |
894 | | public: |
895 | | |
896 | | ::google::protobuf::Metadata GetMetadata() const final; |
897 | | |
898 | | // nested types ---------------------------------------------------- |
899 | | |
900 | | // accessors ------------------------------------------------------- |
901 | | |
902 | | // repeated .test.EchoResponse responses = 1; |
903 | | int responses_size() const; |
904 | | void clear_responses(); |
905 | | static const int kResponsesFieldNumber = 1; |
906 | | ::test::EchoResponse* mutable_responses(int index); |
907 | | ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >* |
908 | | mutable_responses(); |
909 | | const ::test::EchoResponse& responses(int index) const; |
910 | | ::test::EchoResponse* add_responses(); |
911 | | const ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >& |
912 | | responses() const; |
913 | | |
914 | | // @@protoc_insertion_point(class_scope:test.ComboResponse) |
915 | | private: |
916 | | |
917 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
918 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
919 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
920 | | ::google::protobuf::RepeatedPtrField< ::test::EchoResponse > responses_; |
921 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
922 | | }; |
923 | | // ------------------------------------------------------------------- |
924 | | |
925 | | class HttpRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.HttpRequest) */ { |
926 | | public: |
927 | | HttpRequest(); |
928 | | virtual ~HttpRequest(); |
929 | | |
930 | | HttpRequest(const HttpRequest& from); |
931 | | |
932 | 0 | inline HttpRequest& operator=(const HttpRequest& from) { |
933 | 0 | CopyFrom(from); |
934 | 0 | return *this; |
935 | 0 | } |
936 | | #if LANG_CXX11 |
937 | | HttpRequest(HttpRequest&& from) noexcept |
938 | 0 | : HttpRequest() { |
939 | 0 | *this = ::std::move(from); |
940 | 0 | } |
941 | | |
942 | 0 | inline HttpRequest& operator=(HttpRequest&& from) noexcept { |
943 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
944 | 0 | if (this != &from) InternalSwap(&from); |
945 | 0 | } else { |
946 | 0 | CopyFrom(from); |
947 | 0 | } |
948 | 0 | return *this; |
949 | 0 | } |
950 | | #endif |
951 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
952 | 0 | return _internal_metadata_.unknown_fields(); |
953 | 0 | } |
954 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
955 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
956 | 0 | } |
957 | | |
958 | | static const ::google::protobuf::Descriptor* descriptor(); |
959 | | static const HttpRequest& default_instance(); |
960 | | |
961 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
962 | 0 | static inline const HttpRequest* internal_default_instance() { |
963 | 0 | return reinterpret_cast<const HttpRequest*>( |
964 | 0 | &_HttpRequest_default_instance_); |
965 | 0 | } |
966 | | static constexpr int kIndexInFileMessages = |
967 | | 6; |
968 | | |
969 | | void Swap(HttpRequest* other); |
970 | 0 | friend void swap(HttpRequest& a, HttpRequest& b) { |
971 | 0 | a.Swap(&b); |
972 | 0 | } |
973 | | |
974 | | // implements Message ---------------------------------------------- |
975 | | |
976 | 0 | inline HttpRequest* New() const final { |
977 | 0 | return CreateMaybeMessage<HttpRequest>(NULL); |
978 | 0 | } |
979 | | |
980 | 0 | HttpRequest* New(::google::protobuf::Arena* arena) const final { |
981 | 0 | return CreateMaybeMessage<HttpRequest>(arena); |
982 | 0 | } |
983 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
984 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
985 | | void CopyFrom(const HttpRequest& from); |
986 | | void MergeFrom(const HttpRequest& from); |
987 | | void Clear() final; |
988 | | bool IsInitialized() const final; |
989 | | |
990 | | size_t ByteSizeLong() const final; |
991 | | bool MergePartialFromCodedStream( |
992 | | ::google::protobuf::io::CodedInputStream* input) final; |
993 | | void SerializeWithCachedSizes( |
994 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
995 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
996 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
997 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
998 | | |
999 | | private: |
1000 | | void SharedCtor(); |
1001 | | void SharedDtor(); |
1002 | | void SetCachedSize(int size) const final; |
1003 | | void InternalSwap(HttpRequest* other); |
1004 | | private: |
1005 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1006 | 0 | return NULL; |
1007 | 0 | } |
1008 | 0 | inline void* MaybeArenaPtr() const { |
1009 | 0 | return NULL; |
1010 | 0 | } |
1011 | | public: |
1012 | | |
1013 | | ::google::protobuf::Metadata GetMetadata() const final; |
1014 | | |
1015 | | // nested types ---------------------------------------------------- |
1016 | | |
1017 | | // accessors ------------------------------------------------------- |
1018 | | |
1019 | | // @@protoc_insertion_point(class_scope:test.HttpRequest) |
1020 | | private: |
1021 | | |
1022 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1023 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1024 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
1025 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
1026 | | }; |
1027 | | // ------------------------------------------------------------------- |
1028 | | |
1029 | | class HttpResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.HttpResponse) */ { |
1030 | | public: |
1031 | | HttpResponse(); |
1032 | | virtual ~HttpResponse(); |
1033 | | |
1034 | | HttpResponse(const HttpResponse& from); |
1035 | | |
1036 | 0 | inline HttpResponse& operator=(const HttpResponse& from) { |
1037 | 0 | CopyFrom(from); |
1038 | 0 | return *this; |
1039 | 0 | } |
1040 | | #if LANG_CXX11 |
1041 | | HttpResponse(HttpResponse&& from) noexcept |
1042 | 0 | : HttpResponse() { |
1043 | 0 | *this = ::std::move(from); |
1044 | 0 | } |
1045 | | |
1046 | 0 | inline HttpResponse& operator=(HttpResponse&& from) noexcept { |
1047 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1048 | 0 | if (this != &from) InternalSwap(&from); |
1049 | 0 | } else { |
1050 | 0 | CopyFrom(from); |
1051 | 0 | } |
1052 | 0 | return *this; |
1053 | 0 | } |
1054 | | #endif |
1055 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1056 | 0 | return _internal_metadata_.unknown_fields(); |
1057 | 0 | } |
1058 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1059 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1060 | 0 | } |
1061 | | |
1062 | | static const ::google::protobuf::Descriptor* descriptor(); |
1063 | | static const HttpResponse& default_instance(); |
1064 | | |
1065 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1066 | 0 | static inline const HttpResponse* internal_default_instance() { |
1067 | 0 | return reinterpret_cast<const HttpResponse*>( |
1068 | 0 | &_HttpResponse_default_instance_); |
1069 | 0 | } |
1070 | | static constexpr int kIndexInFileMessages = |
1071 | | 7; |
1072 | | |
1073 | | void Swap(HttpResponse* other); |
1074 | 0 | friend void swap(HttpResponse& a, HttpResponse& b) { |
1075 | 0 | a.Swap(&b); |
1076 | 0 | } |
1077 | | |
1078 | | // implements Message ---------------------------------------------- |
1079 | | |
1080 | 0 | inline HttpResponse* New() const final { |
1081 | 0 | return CreateMaybeMessage<HttpResponse>(NULL); |
1082 | 0 | } |
1083 | | |
1084 | 0 | HttpResponse* New(::google::protobuf::Arena* arena) const final { |
1085 | 0 | return CreateMaybeMessage<HttpResponse>(arena); |
1086 | 0 | } |
1087 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
1088 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
1089 | | void CopyFrom(const HttpResponse& from); |
1090 | | void MergeFrom(const HttpResponse& from); |
1091 | | void Clear() final; |
1092 | | bool IsInitialized() const final; |
1093 | | |
1094 | | size_t ByteSizeLong() const final; |
1095 | | bool MergePartialFromCodedStream( |
1096 | | ::google::protobuf::io::CodedInputStream* input) final; |
1097 | | void SerializeWithCachedSizes( |
1098 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
1099 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1100 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
1101 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1102 | | |
1103 | | private: |
1104 | | void SharedCtor(); |
1105 | | void SharedDtor(); |
1106 | | void SetCachedSize(int size) const final; |
1107 | | void InternalSwap(HttpResponse* other); |
1108 | | private: |
1109 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1110 | 0 | return NULL; |
1111 | 0 | } |
1112 | 0 | inline void* MaybeArenaPtr() const { |
1113 | 0 | return NULL; |
1114 | 0 | } |
1115 | | public: |
1116 | | |
1117 | | ::google::protobuf::Metadata GetMetadata() const final; |
1118 | | |
1119 | | // nested types ---------------------------------------------------- |
1120 | | |
1121 | | // accessors ------------------------------------------------------- |
1122 | | |
1123 | | // @@protoc_insertion_point(class_scope:test.HttpResponse) |
1124 | | private: |
1125 | | |
1126 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1127 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1128 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
1129 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
1130 | | }; |
1131 | | // ------------------------------------------------------------------- |
1132 | | |
1133 | | class Message1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.Message1) */ { |
1134 | | public: |
1135 | | Message1(); |
1136 | | virtual ~Message1(); |
1137 | | |
1138 | | Message1(const Message1& from); |
1139 | | |
1140 | 0 | inline Message1& operator=(const Message1& from) { |
1141 | 0 | CopyFrom(from); |
1142 | 0 | return *this; |
1143 | 0 | } |
1144 | | #if LANG_CXX11 |
1145 | | Message1(Message1&& from) noexcept |
1146 | 0 | : Message1() { |
1147 | 0 | *this = ::std::move(from); |
1148 | 0 | } |
1149 | | |
1150 | 0 | inline Message1& operator=(Message1&& from) noexcept { |
1151 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1152 | 0 | if (this != &from) InternalSwap(&from); |
1153 | 0 | } else { |
1154 | 0 | CopyFrom(from); |
1155 | 0 | } |
1156 | 0 | return *this; |
1157 | 0 | } |
1158 | | #endif |
1159 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1160 | 0 | return _internal_metadata_.unknown_fields(); |
1161 | 0 | } |
1162 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1163 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1164 | 0 | } |
1165 | | |
1166 | | static const ::google::protobuf::Descriptor* descriptor(); |
1167 | | static const Message1& default_instance(); |
1168 | | |
1169 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1170 | 0 | static inline const Message1* internal_default_instance() { |
1171 | 0 | return reinterpret_cast<const Message1*>( |
1172 | 0 | &_Message1_default_instance_); |
1173 | 0 | } |
1174 | | static constexpr int kIndexInFileMessages = |
1175 | | 8; |
1176 | | |
1177 | | void Swap(Message1* other); |
1178 | 0 | friend void swap(Message1& a, Message1& b) { |
1179 | 0 | a.Swap(&b); |
1180 | 0 | } |
1181 | | |
1182 | | // implements Message ---------------------------------------------- |
1183 | | |
1184 | 0 | inline Message1* New() const final { |
1185 | 0 | return CreateMaybeMessage<Message1>(NULL); |
1186 | 0 | } |
1187 | | |
1188 | 0 | Message1* New(::google::protobuf::Arena* arena) const final { |
1189 | 0 | return CreateMaybeMessage<Message1>(arena); |
1190 | 0 | } |
1191 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
1192 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
1193 | | void CopyFrom(const Message1& from); |
1194 | | void MergeFrom(const Message1& from); |
1195 | | void Clear() final; |
1196 | | bool IsInitialized() const final; |
1197 | | |
1198 | | size_t ByteSizeLong() const final; |
1199 | | bool MergePartialFromCodedStream( |
1200 | | ::google::protobuf::io::CodedInputStream* input) final; |
1201 | | void SerializeWithCachedSizes( |
1202 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
1203 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1204 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
1205 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1206 | | |
1207 | | private: |
1208 | | void SharedCtor(); |
1209 | | void SharedDtor(); |
1210 | | void SetCachedSize(int size) const final; |
1211 | | void InternalSwap(Message1* other); |
1212 | | private: |
1213 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1214 | 0 | return NULL; |
1215 | 0 | } |
1216 | 0 | inline void* MaybeArenaPtr() const { |
1217 | 0 | return NULL; |
1218 | 0 | } |
1219 | | public: |
1220 | | |
1221 | | ::google::protobuf::Metadata GetMetadata() const final; |
1222 | | |
1223 | | // nested types ---------------------------------------------------- |
1224 | | |
1225 | | // accessors ------------------------------------------------------- |
1226 | | |
1227 | | // required .test.State0 stat = 1; |
1228 | | bool has_stat() const; |
1229 | | void clear_stat(); |
1230 | | static const int kStatFieldNumber = 1; |
1231 | | ::test::State0 stat() const; |
1232 | | void set_stat(::test::State0 value); |
1233 | | |
1234 | | // @@protoc_insertion_point(class_scope:test.Message1) |
1235 | | private: |
1236 | | void set_has_stat(); |
1237 | | void clear_has_stat(); |
1238 | | |
1239 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1240 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1241 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
1242 | | int stat_; |
1243 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
1244 | | }; |
1245 | | // ------------------------------------------------------------------- |
1246 | | |
1247 | | class Message2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:test.Message2) */ { |
1248 | | public: |
1249 | | Message2(); |
1250 | | virtual ~Message2(); |
1251 | | |
1252 | | Message2(const Message2& from); |
1253 | | |
1254 | 0 | inline Message2& operator=(const Message2& from) { |
1255 | 0 | CopyFrom(from); |
1256 | 0 | return *this; |
1257 | 0 | } |
1258 | | #if LANG_CXX11 |
1259 | | Message2(Message2&& from) noexcept |
1260 | 0 | : Message2() { |
1261 | 0 | *this = ::std::move(from); |
1262 | 0 | } |
1263 | | |
1264 | 0 | inline Message2& operator=(Message2&& from) noexcept { |
1265 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1266 | 0 | if (this != &from) InternalSwap(&from); |
1267 | 0 | } else { |
1268 | 0 | CopyFrom(from); |
1269 | 0 | } |
1270 | 0 | return *this; |
1271 | 0 | } |
1272 | | #endif |
1273 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1274 | 0 | return _internal_metadata_.unknown_fields(); |
1275 | 0 | } |
1276 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1277 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1278 | 0 | } |
1279 | | |
1280 | | static const ::google::protobuf::Descriptor* descriptor(); |
1281 | | static const Message2& default_instance(); |
1282 | | |
1283 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1284 | 0 | static inline const Message2* internal_default_instance() { |
1285 | 0 | return reinterpret_cast<const Message2*>( |
1286 | 0 | &_Message2_default_instance_); |
1287 | 0 | } |
1288 | | static constexpr int kIndexInFileMessages = |
1289 | | 9; |
1290 | | |
1291 | | void Swap(Message2* other); |
1292 | 0 | friend void swap(Message2& a, Message2& b) { |
1293 | 0 | a.Swap(&b); |
1294 | 0 | } |
1295 | | |
1296 | | // implements Message ---------------------------------------------- |
1297 | | |
1298 | 0 | inline Message2* New() const final { |
1299 | 0 | return CreateMaybeMessage<Message2>(NULL); |
1300 | 0 | } |
1301 | | |
1302 | 0 | Message2* New(::google::protobuf::Arena* arena) const final { |
1303 | 0 | return CreateMaybeMessage<Message2>(arena); |
1304 | 0 | } |
1305 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
1306 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
1307 | | void CopyFrom(const Message2& from); |
1308 | | void MergeFrom(const Message2& from); |
1309 | | void Clear() final; |
1310 | | bool IsInitialized() const final; |
1311 | | |
1312 | | size_t ByteSizeLong() const final; |
1313 | | bool MergePartialFromCodedStream( |
1314 | | ::google::protobuf::io::CodedInputStream* input) final; |
1315 | | void SerializeWithCachedSizes( |
1316 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
1317 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1318 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
1319 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1320 | | |
1321 | | private: |
1322 | | void SharedCtor(); |
1323 | | void SharedDtor(); |
1324 | | void SetCachedSize(int size) const final; |
1325 | | void InternalSwap(Message2* other); |
1326 | | private: |
1327 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1328 | 0 | return NULL; |
1329 | 0 | } |
1330 | 0 | inline void* MaybeArenaPtr() const { |
1331 | 0 | return NULL; |
1332 | 0 | } |
1333 | | public: |
1334 | | |
1335 | | ::google::protobuf::Metadata GetMetadata() const final; |
1336 | | |
1337 | | // nested types ---------------------------------------------------- |
1338 | | |
1339 | | // accessors ------------------------------------------------------- |
1340 | | |
1341 | | // required .test.State1 stat = 1; |
1342 | | bool has_stat() const; |
1343 | | void clear_stat(); |
1344 | | static const int kStatFieldNumber = 1; |
1345 | | ::test::State1 stat() const; |
1346 | | void set_stat(::test::State1 value); |
1347 | | |
1348 | | // @@protoc_insertion_point(class_scope:test.Message2) |
1349 | | private: |
1350 | | void set_has_stat(); |
1351 | | void clear_has_stat(); |
1352 | | |
1353 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1354 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1355 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
1356 | | int stat_; |
1357 | | friend struct ::protobuf_echo_2eproto::TableStruct; |
1358 | | }; |
1359 | | // =================================================================== |
1360 | | |
1361 | | class EchoService_Stub; |
1362 | | |
1363 | | class EchoService : public ::google::protobuf::Service { |
1364 | | protected: |
1365 | | // This class should be treated as an abstract interface. |
1366 | 0 | inline EchoService() {}; |
1367 | | public: |
1368 | | virtual ~EchoService(); |
1369 | | |
1370 | | typedef EchoService_Stub Stub; |
1371 | | |
1372 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1373 | | |
1374 | | virtual void Echo(::google::protobuf::RpcController* controller, |
1375 | | const ::test::EchoRequest* request, |
1376 | | ::test::EchoResponse* response, |
1377 | | ::google::protobuf::Closure* done); |
1378 | | virtual void ComboEcho(::google::protobuf::RpcController* controller, |
1379 | | const ::test::ComboRequest* request, |
1380 | | ::test::ComboResponse* response, |
1381 | | ::google::protobuf::Closure* done); |
1382 | | virtual void BytesEcho1(::google::protobuf::RpcController* controller, |
1383 | | const ::test::BytesRequest* request, |
1384 | | ::test::BytesResponse* response, |
1385 | | ::google::protobuf::Closure* done); |
1386 | | virtual void BytesEcho2(::google::protobuf::RpcController* controller, |
1387 | | const ::test::BytesRequest* request, |
1388 | | ::test::BytesResponse* response, |
1389 | | ::google::protobuf::Closure* done); |
1390 | | |
1391 | | // implements Service ---------------------------------------------- |
1392 | | |
1393 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1394 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1395 | | ::google::protobuf::RpcController* controller, |
1396 | | const ::google::protobuf::Message* request, |
1397 | | ::google::protobuf::Message* response, |
1398 | | ::google::protobuf::Closure* done); |
1399 | | const ::google::protobuf::Message& GetRequestPrototype( |
1400 | | const ::google::protobuf::MethodDescriptor* method) const; |
1401 | | const ::google::protobuf::Message& GetResponsePrototype( |
1402 | | const ::google::protobuf::MethodDescriptor* method) const; |
1403 | | |
1404 | | private: |
1405 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
1406 | | }; |
1407 | | |
1408 | | class EchoService_Stub : public EchoService { |
1409 | | public: |
1410 | | EchoService_Stub(::google::protobuf::RpcChannel* channel); |
1411 | | EchoService_Stub(::google::protobuf::RpcChannel* channel, |
1412 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1413 | | ~EchoService_Stub(); |
1414 | | |
1415 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1416 | | |
1417 | | // implements EchoService ------------------------------------------ |
1418 | | |
1419 | | void Echo(::google::protobuf::RpcController* controller, |
1420 | | const ::test::EchoRequest* request, |
1421 | | ::test::EchoResponse* response, |
1422 | | ::google::protobuf::Closure* done); |
1423 | | void ComboEcho(::google::protobuf::RpcController* controller, |
1424 | | const ::test::ComboRequest* request, |
1425 | | ::test::ComboResponse* response, |
1426 | | ::google::protobuf::Closure* done); |
1427 | | void BytesEcho1(::google::protobuf::RpcController* controller, |
1428 | | const ::test::BytesRequest* request, |
1429 | | ::test::BytesResponse* response, |
1430 | | ::google::protobuf::Closure* done); |
1431 | | void BytesEcho2(::google::protobuf::RpcController* controller, |
1432 | | const ::test::BytesRequest* request, |
1433 | | ::test::BytesResponse* response, |
1434 | | ::google::protobuf::Closure* done); |
1435 | | private: |
1436 | | ::google::protobuf::RpcChannel* channel_; |
1437 | | bool owns_channel_; |
1438 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
1439 | | }; |
1440 | | |
1441 | | |
1442 | | // ------------------------------------------------------------------- |
1443 | | |
1444 | | class DownloadService_Stub; |
1445 | | |
1446 | | class DownloadService : public ::google::protobuf::Service { |
1447 | | protected: |
1448 | | // This class should be treated as an abstract interface. |
1449 | 0 | inline DownloadService() {}; |
1450 | | public: |
1451 | | virtual ~DownloadService(); |
1452 | | |
1453 | | typedef DownloadService_Stub Stub; |
1454 | | |
1455 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1456 | | |
1457 | | virtual void Download(::google::protobuf::RpcController* controller, |
1458 | | const ::test::HttpRequest* request, |
1459 | | ::test::HttpResponse* response, |
1460 | | ::google::protobuf::Closure* done); |
1461 | | virtual void DownloadFailed(::google::protobuf::RpcController* controller, |
1462 | | const ::test::HttpRequest* request, |
1463 | | ::test::HttpResponse* response, |
1464 | | ::google::protobuf::Closure* done); |
1465 | | |
1466 | | // implements Service ---------------------------------------------- |
1467 | | |
1468 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1469 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1470 | | ::google::protobuf::RpcController* controller, |
1471 | | const ::google::protobuf::Message* request, |
1472 | | ::google::protobuf::Message* response, |
1473 | | ::google::protobuf::Closure* done); |
1474 | | const ::google::protobuf::Message& GetRequestPrototype( |
1475 | | const ::google::protobuf::MethodDescriptor* method) const; |
1476 | | const ::google::protobuf::Message& GetResponsePrototype( |
1477 | | const ::google::protobuf::MethodDescriptor* method) const; |
1478 | | |
1479 | | private: |
1480 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService); |
1481 | | }; |
1482 | | |
1483 | | class DownloadService_Stub : public DownloadService { |
1484 | | public: |
1485 | | DownloadService_Stub(::google::protobuf::RpcChannel* channel); |
1486 | | DownloadService_Stub(::google::protobuf::RpcChannel* channel, |
1487 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1488 | | ~DownloadService_Stub(); |
1489 | | |
1490 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1491 | | |
1492 | | // implements DownloadService ------------------------------------------ |
1493 | | |
1494 | | void Download(::google::protobuf::RpcController* controller, |
1495 | | const ::test::HttpRequest* request, |
1496 | | ::test::HttpResponse* response, |
1497 | | ::google::protobuf::Closure* done); |
1498 | | void DownloadFailed(::google::protobuf::RpcController* controller, |
1499 | | const ::test::HttpRequest* request, |
1500 | | ::test::HttpResponse* response, |
1501 | | ::google::protobuf::Closure* done); |
1502 | | private: |
1503 | | ::google::protobuf::RpcChannel* channel_; |
1504 | | bool owns_channel_; |
1505 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService_Stub); |
1506 | | }; |
1507 | | |
1508 | | |
1509 | | // ------------------------------------------------------------------- |
1510 | | |
1511 | | class UploadService_Stub; |
1512 | | |
1513 | | class UploadService : public ::google::protobuf::Service { |
1514 | | protected: |
1515 | | // This class should be treated as an abstract interface. |
1516 | 0 | inline UploadService() {}; |
1517 | | public: |
1518 | | virtual ~UploadService(); |
1519 | | |
1520 | | typedef UploadService_Stub Stub; |
1521 | | |
1522 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1523 | | |
1524 | | virtual void Upload(::google::protobuf::RpcController* controller, |
1525 | | const ::test::HttpRequest* request, |
1526 | | ::test::HttpResponse* response, |
1527 | | ::google::protobuf::Closure* done); |
1528 | | virtual void UploadFailed(::google::protobuf::RpcController* controller, |
1529 | | const ::test::HttpRequest* request, |
1530 | | ::test::HttpResponse* response, |
1531 | | ::google::protobuf::Closure* done); |
1532 | | |
1533 | | // implements Service ---------------------------------------------- |
1534 | | |
1535 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1536 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1537 | | ::google::protobuf::RpcController* controller, |
1538 | | const ::google::protobuf::Message* request, |
1539 | | ::google::protobuf::Message* response, |
1540 | | ::google::protobuf::Closure* done); |
1541 | | const ::google::protobuf::Message& GetRequestPrototype( |
1542 | | const ::google::protobuf::MethodDescriptor* method) const; |
1543 | | const ::google::protobuf::Message& GetResponsePrototype( |
1544 | | const ::google::protobuf::MethodDescriptor* method) const; |
1545 | | |
1546 | | private: |
1547 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService); |
1548 | | }; |
1549 | | |
1550 | | class UploadService_Stub : public UploadService { |
1551 | | public: |
1552 | | UploadService_Stub(::google::protobuf::RpcChannel* channel); |
1553 | | UploadService_Stub(::google::protobuf::RpcChannel* channel, |
1554 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1555 | | ~UploadService_Stub(); |
1556 | | |
1557 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1558 | | |
1559 | | // implements UploadService ------------------------------------------ |
1560 | | |
1561 | | void Upload(::google::protobuf::RpcController* controller, |
1562 | | const ::test::HttpRequest* request, |
1563 | | ::test::HttpResponse* response, |
1564 | | ::google::protobuf::Closure* done); |
1565 | | void UploadFailed(::google::protobuf::RpcController* controller, |
1566 | | const ::test::HttpRequest* request, |
1567 | | ::test::HttpResponse* response, |
1568 | | ::google::protobuf::Closure* done); |
1569 | | private: |
1570 | | ::google::protobuf::RpcChannel* channel_; |
1571 | | bool owns_channel_; |
1572 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService_Stub); |
1573 | | }; |
1574 | | |
1575 | | |
1576 | | // ------------------------------------------------------------------- |
1577 | | |
1578 | | class UserNamingService_Stub; |
1579 | | |
1580 | | class UserNamingService : public ::google::protobuf::Service { |
1581 | | protected: |
1582 | | // This class should be treated as an abstract interface. |
1583 | 0 | inline UserNamingService() {}; |
1584 | | public: |
1585 | | virtual ~UserNamingService(); |
1586 | | |
1587 | | typedef UserNamingService_Stub Stub; |
1588 | | |
1589 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1590 | | |
1591 | | virtual void ListNames(::google::protobuf::RpcController* controller, |
1592 | | const ::test::HttpRequest* request, |
1593 | | ::test::HttpResponse* response, |
1594 | | ::google::protobuf::Closure* done); |
1595 | | virtual void Touch(::google::protobuf::RpcController* controller, |
1596 | | const ::test::HttpRequest* request, |
1597 | | ::test::HttpResponse* response, |
1598 | | ::google::protobuf::Closure* done); |
1599 | | |
1600 | | // implements Service ---------------------------------------------- |
1601 | | |
1602 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1603 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1604 | | ::google::protobuf::RpcController* controller, |
1605 | | const ::google::protobuf::Message* request, |
1606 | | ::google::protobuf::Message* response, |
1607 | | ::google::protobuf::Closure* done); |
1608 | | const ::google::protobuf::Message& GetRequestPrototype( |
1609 | | const ::google::protobuf::MethodDescriptor* method) const; |
1610 | | const ::google::protobuf::Message& GetResponsePrototype( |
1611 | | const ::google::protobuf::MethodDescriptor* method) const; |
1612 | | |
1613 | | private: |
1614 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService); |
1615 | | }; |
1616 | | |
1617 | | class UserNamingService_Stub : public UserNamingService { |
1618 | | public: |
1619 | | UserNamingService_Stub(::google::protobuf::RpcChannel* channel); |
1620 | | UserNamingService_Stub(::google::protobuf::RpcChannel* channel, |
1621 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1622 | | ~UserNamingService_Stub(); |
1623 | | |
1624 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1625 | | |
1626 | | // implements UserNamingService ------------------------------------------ |
1627 | | |
1628 | | void ListNames(::google::protobuf::RpcController* controller, |
1629 | | const ::test::HttpRequest* request, |
1630 | | ::test::HttpResponse* response, |
1631 | | ::google::protobuf::Closure* done); |
1632 | | void Touch(::google::protobuf::RpcController* controller, |
1633 | | const ::test::HttpRequest* request, |
1634 | | ::test::HttpResponse* response, |
1635 | | ::google::protobuf::Closure* done); |
1636 | | private: |
1637 | | ::google::protobuf::RpcChannel* channel_; |
1638 | | bool owns_channel_; |
1639 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService_Stub); |
1640 | | }; |
1641 | | |
1642 | | |
1643 | | // ------------------------------------------------------------------- |
1644 | | |
1645 | | class DiscoveryNamingService_Stub; |
1646 | | |
1647 | | class DiscoveryNamingService : public ::google::protobuf::Service { |
1648 | | protected: |
1649 | | // This class should be treated as an abstract interface. |
1650 | 0 | inline DiscoveryNamingService() {}; |
1651 | | public: |
1652 | | virtual ~DiscoveryNamingService(); |
1653 | | |
1654 | | typedef DiscoveryNamingService_Stub Stub; |
1655 | | |
1656 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1657 | | |
1658 | | virtual void Nodes(::google::protobuf::RpcController* controller, |
1659 | | const ::test::HttpRequest* request, |
1660 | | ::test::HttpResponse* response, |
1661 | | ::google::protobuf::Closure* done); |
1662 | | virtual void Fetchs(::google::protobuf::RpcController* controller, |
1663 | | const ::test::HttpRequest* request, |
1664 | | ::test::HttpResponse* response, |
1665 | | ::google::protobuf::Closure* done); |
1666 | | virtual void Register(::google::protobuf::RpcController* controller, |
1667 | | const ::test::HttpRequest* request, |
1668 | | ::test::HttpResponse* response, |
1669 | | ::google::protobuf::Closure* done); |
1670 | | virtual void Renew(::google::protobuf::RpcController* controller, |
1671 | | const ::test::HttpRequest* request, |
1672 | | ::test::HttpResponse* response, |
1673 | | ::google::protobuf::Closure* done); |
1674 | | virtual void Cancel(::google::protobuf::RpcController* controller, |
1675 | | const ::test::HttpRequest* request, |
1676 | | ::test::HttpResponse* response, |
1677 | | ::google::protobuf::Closure* done); |
1678 | | |
1679 | | // implements Service ---------------------------------------------- |
1680 | | |
1681 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1682 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1683 | | ::google::protobuf::RpcController* controller, |
1684 | | const ::google::protobuf::Message* request, |
1685 | | ::google::protobuf::Message* response, |
1686 | | ::google::protobuf::Closure* done); |
1687 | | const ::google::protobuf::Message& GetRequestPrototype( |
1688 | | const ::google::protobuf::MethodDescriptor* method) const; |
1689 | | const ::google::protobuf::Message& GetResponsePrototype( |
1690 | | const ::google::protobuf::MethodDescriptor* method) const; |
1691 | | |
1692 | | private: |
1693 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService); |
1694 | | }; |
1695 | | |
1696 | | class DiscoveryNamingService_Stub : public DiscoveryNamingService { |
1697 | | public: |
1698 | | DiscoveryNamingService_Stub(::google::protobuf::RpcChannel* channel); |
1699 | | DiscoveryNamingService_Stub(::google::protobuf::RpcChannel* channel, |
1700 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1701 | | ~DiscoveryNamingService_Stub(); |
1702 | | |
1703 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1704 | | |
1705 | | // implements DiscoveryNamingService ------------------------------------------ |
1706 | | |
1707 | | void Nodes(::google::protobuf::RpcController* controller, |
1708 | | const ::test::HttpRequest* request, |
1709 | | ::test::HttpResponse* response, |
1710 | | ::google::protobuf::Closure* done); |
1711 | | void Fetchs(::google::protobuf::RpcController* controller, |
1712 | | const ::test::HttpRequest* request, |
1713 | | ::test::HttpResponse* response, |
1714 | | ::google::protobuf::Closure* done); |
1715 | | void Register(::google::protobuf::RpcController* controller, |
1716 | | const ::test::HttpRequest* request, |
1717 | | ::test::HttpResponse* response, |
1718 | | ::google::protobuf::Closure* done); |
1719 | | void Renew(::google::protobuf::RpcController* controller, |
1720 | | const ::test::HttpRequest* request, |
1721 | | ::test::HttpResponse* response, |
1722 | | ::google::protobuf::Closure* done); |
1723 | | void Cancel(::google::protobuf::RpcController* controller, |
1724 | | const ::test::HttpRequest* request, |
1725 | | ::test::HttpResponse* response, |
1726 | | ::google::protobuf::Closure* done); |
1727 | | private: |
1728 | | ::google::protobuf::RpcChannel* channel_; |
1729 | | bool owns_channel_; |
1730 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService_Stub); |
1731 | | }; |
1732 | | |
1733 | | |
1734 | | // ------------------------------------------------------------------- |
1735 | | |
1736 | | class NacosNamingService_Stub; |
1737 | | |
1738 | | class NacosNamingService : public ::google::protobuf::Service { |
1739 | | protected: |
1740 | | // This class should be treated as an abstract interface. |
1741 | 0 | inline NacosNamingService() {}; |
1742 | | public: |
1743 | | virtual ~NacosNamingService(); |
1744 | | |
1745 | | typedef NacosNamingService_Stub Stub; |
1746 | | |
1747 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1748 | | |
1749 | | virtual void Login(::google::protobuf::RpcController* controller, |
1750 | | const ::test::HttpRequest* request, |
1751 | | ::test::HttpResponse* response, |
1752 | | ::google::protobuf::Closure* done); |
1753 | | virtual void List(::google::protobuf::RpcController* controller, |
1754 | | const ::test::HttpRequest* request, |
1755 | | ::test::HttpResponse* response, |
1756 | | ::google::protobuf::Closure* done); |
1757 | | |
1758 | | // implements Service ---------------------------------------------- |
1759 | | |
1760 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1761 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1762 | | ::google::protobuf::RpcController* controller, |
1763 | | const ::google::protobuf::Message* request, |
1764 | | ::google::protobuf::Message* response, |
1765 | | ::google::protobuf::Closure* done); |
1766 | | const ::google::protobuf::Message& GetRequestPrototype( |
1767 | | const ::google::protobuf::MethodDescriptor* method) const; |
1768 | | const ::google::protobuf::Message& GetResponsePrototype( |
1769 | | const ::google::protobuf::MethodDescriptor* method) const; |
1770 | | |
1771 | | private: |
1772 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService); |
1773 | | }; |
1774 | | |
1775 | | class NacosNamingService_Stub : public NacosNamingService { |
1776 | | public: |
1777 | | NacosNamingService_Stub(::google::protobuf::RpcChannel* channel); |
1778 | | NacosNamingService_Stub(::google::protobuf::RpcChannel* channel, |
1779 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1780 | | ~NacosNamingService_Stub(); |
1781 | | |
1782 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1783 | | |
1784 | | // implements NacosNamingService ------------------------------------------ |
1785 | | |
1786 | | void Login(::google::protobuf::RpcController* controller, |
1787 | | const ::test::HttpRequest* request, |
1788 | | ::test::HttpResponse* response, |
1789 | | ::google::protobuf::Closure* done); |
1790 | | void List(::google::protobuf::RpcController* controller, |
1791 | | const ::test::HttpRequest* request, |
1792 | | ::test::HttpResponse* response, |
1793 | | ::google::protobuf::Closure* done); |
1794 | | private: |
1795 | | ::google::protobuf::RpcChannel* channel_; |
1796 | | bool owns_channel_; |
1797 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService_Stub); |
1798 | | }; |
1799 | | |
1800 | | |
1801 | | // ------------------------------------------------------------------- |
1802 | | |
1803 | | class HttpService_Stub; |
1804 | | |
1805 | | class HttpService : public ::google::protobuf::Service { |
1806 | | protected: |
1807 | | // This class should be treated as an abstract interface. |
1808 | 0 | inline HttpService() {}; |
1809 | | public: |
1810 | | virtual ~HttpService(); |
1811 | | |
1812 | | typedef HttpService_Stub Stub; |
1813 | | |
1814 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
1815 | | |
1816 | | virtual void Head(::google::protobuf::RpcController* controller, |
1817 | | const ::test::HttpRequest* request, |
1818 | | ::test::HttpResponse* response, |
1819 | | ::google::protobuf::Closure* done); |
1820 | | virtual void Expect(::google::protobuf::RpcController* controller, |
1821 | | const ::test::HttpRequest* request, |
1822 | | ::test::HttpResponse* response, |
1823 | | ::google::protobuf::Closure* done); |
1824 | | |
1825 | | // implements Service ---------------------------------------------- |
1826 | | |
1827 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
1828 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
1829 | | ::google::protobuf::RpcController* controller, |
1830 | | const ::google::protobuf::Message* request, |
1831 | | ::google::protobuf::Message* response, |
1832 | | ::google::protobuf::Closure* done); |
1833 | | const ::google::protobuf::Message& GetRequestPrototype( |
1834 | | const ::google::protobuf::MethodDescriptor* method) const; |
1835 | | const ::google::protobuf::Message& GetResponsePrototype( |
1836 | | const ::google::protobuf::MethodDescriptor* method) const; |
1837 | | |
1838 | | private: |
1839 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService); |
1840 | | }; |
1841 | | |
1842 | | class HttpService_Stub : public HttpService { |
1843 | | public: |
1844 | | HttpService_Stub(::google::protobuf::RpcChannel* channel); |
1845 | | HttpService_Stub(::google::protobuf::RpcChannel* channel, |
1846 | | ::google::protobuf::Service::ChannelOwnership ownership); |
1847 | | ~HttpService_Stub(); |
1848 | | |
1849 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
1850 | | |
1851 | | // implements HttpService ------------------------------------------ |
1852 | | |
1853 | | void Head(::google::protobuf::RpcController* controller, |
1854 | | const ::test::HttpRequest* request, |
1855 | | ::test::HttpResponse* response, |
1856 | | ::google::protobuf::Closure* done); |
1857 | | void Expect(::google::protobuf::RpcController* controller, |
1858 | | const ::test::HttpRequest* request, |
1859 | | ::test::HttpResponse* response, |
1860 | | ::google::protobuf::Closure* done); |
1861 | | private: |
1862 | | ::google::protobuf::RpcChannel* channel_; |
1863 | | bool owns_channel_; |
1864 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService_Stub); |
1865 | | }; |
1866 | | |
1867 | | |
1868 | | // =================================================================== |
1869 | | |
1870 | | |
1871 | | // =================================================================== |
1872 | | |
1873 | | #ifdef __GNUC__ |
1874 | | #pragma GCC diagnostic push |
1875 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1876 | | #endif // __GNUC__ |
1877 | | // EchoRequest |
1878 | | |
1879 | | // required string message = 1; |
1880 | 0 | inline bool EchoRequest::has_message() const { |
1881 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
1882 | 0 | } |
1883 | 0 | inline void EchoRequest::set_has_message() { |
1884 | 0 | _has_bits_[0] |= 0x00000001u; |
1885 | 0 | } |
1886 | 0 | inline void EchoRequest::clear_has_message() { |
1887 | 0 | _has_bits_[0] &= ~0x00000001u; |
1888 | 0 | } |
1889 | 0 | inline void EchoRequest::clear_message() { |
1890 | 0 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1891 | 0 | clear_has_message(); |
1892 | 0 | } |
1893 | 0 | inline const ::std::string& EchoRequest::message() const { |
1894 | | // @@protoc_insertion_point(field_get:test.EchoRequest.message) |
1895 | 0 | return message_.GetNoArena(); |
1896 | 0 | } |
1897 | 0 | inline void EchoRequest::set_message(const ::std::string& value) { |
1898 | 0 | set_has_message(); |
1899 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1900 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.message) |
1901 | 0 | } |
1902 | | #if LANG_CXX11 |
1903 | 0 | inline void EchoRequest::set_message(::std::string&& value) { |
1904 | 0 | set_has_message(); |
1905 | 0 | message_.SetNoArena( |
1906 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1907 | 0 | // @@protoc_insertion_point(field_set_rvalue:test.EchoRequest.message) |
1908 | 0 | } |
1909 | | #endif |
1910 | 0 | inline void EchoRequest::set_message(const char* value) { |
1911 | 0 | GOOGLE_DCHECK(value != NULL); |
1912 | 0 | set_has_message(); |
1913 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1914 | 0 | // @@protoc_insertion_point(field_set_char:test.EchoRequest.message) |
1915 | 0 | } |
1916 | 0 | inline void EchoRequest::set_message(const char* value, size_t size) { |
1917 | 0 | set_has_message(); |
1918 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1919 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1920 | 0 | // @@protoc_insertion_point(field_set_pointer:test.EchoRequest.message) |
1921 | 0 | } |
1922 | 0 | inline ::std::string* EchoRequest::mutable_message() { |
1923 | 0 | set_has_message(); |
1924 | | // @@protoc_insertion_point(field_mutable:test.EchoRequest.message) |
1925 | 0 | return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1926 | 0 | } |
1927 | 0 | inline ::std::string* EchoRequest::release_message() { |
1928 | 0 | // @@protoc_insertion_point(field_release:test.EchoRequest.message) |
1929 | 0 | if (!has_message()) { |
1930 | 0 | return NULL; |
1931 | 0 | } |
1932 | 0 | clear_has_message(); |
1933 | 0 | return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1934 | 0 | } |
1935 | 0 | inline void EchoRequest::set_allocated_message(::std::string* message) { |
1936 | 0 | if (message != NULL) { |
1937 | 0 | set_has_message(); |
1938 | 0 | } else { |
1939 | 0 | clear_has_message(); |
1940 | 0 | } |
1941 | 0 | message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); |
1942 | 0 | // @@protoc_insertion_point(field_set_allocated:test.EchoRequest.message) |
1943 | 0 | } |
1944 | | |
1945 | | // optional int32 code = 2; |
1946 | 0 | inline bool EchoRequest::has_code() const { |
1947 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
1948 | 0 | } |
1949 | 0 | inline void EchoRequest::set_has_code() { |
1950 | 0 | _has_bits_[0] |= 0x00000002u; |
1951 | 0 | } |
1952 | 0 | inline void EchoRequest::clear_has_code() { |
1953 | 0 | _has_bits_[0] &= ~0x00000002u; |
1954 | 0 | } |
1955 | 0 | inline void EchoRequest::clear_code() { |
1956 | 0 | code_ = 0; |
1957 | 0 | clear_has_code(); |
1958 | 0 | } |
1959 | 0 | inline ::google::protobuf::int32 EchoRequest::code() const { |
1960 | | // @@protoc_insertion_point(field_get:test.EchoRequest.code) |
1961 | 0 | return code_; |
1962 | 0 | } |
1963 | 0 | inline void EchoRequest::set_code(::google::protobuf::int32 value) { |
1964 | 0 | set_has_code(); |
1965 | 0 | code_ = value; |
1966 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.code) |
1967 | 0 | } |
1968 | | |
1969 | | // optional bool close_fd = 3; |
1970 | 0 | inline bool EchoRequest::has_close_fd() const { |
1971 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
1972 | 0 | } |
1973 | 0 | inline void EchoRequest::set_has_close_fd() { |
1974 | 0 | _has_bits_[0] |= 0x00000004u; |
1975 | 0 | } |
1976 | 0 | inline void EchoRequest::clear_has_close_fd() { |
1977 | 0 | _has_bits_[0] &= ~0x00000004u; |
1978 | 0 | } |
1979 | 0 | inline void EchoRequest::clear_close_fd() { |
1980 | 0 | close_fd_ = false; |
1981 | 0 | clear_has_close_fd(); |
1982 | 0 | } |
1983 | 0 | inline bool EchoRequest::close_fd() const { |
1984 | | // @@protoc_insertion_point(field_get:test.EchoRequest.close_fd) |
1985 | 0 | return close_fd_; |
1986 | 0 | } |
1987 | 0 | inline void EchoRequest::set_close_fd(bool value) { |
1988 | 0 | set_has_close_fd(); |
1989 | 0 | close_fd_ = value; |
1990 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.close_fd) |
1991 | 0 | } |
1992 | | |
1993 | | // optional int32 sleep_us = 4; |
1994 | 0 | inline bool EchoRequest::has_sleep_us() const { |
1995 | 0 | return (_has_bits_[0] & 0x00000008u) != 0; |
1996 | 0 | } |
1997 | 0 | inline void EchoRequest::set_has_sleep_us() { |
1998 | 0 | _has_bits_[0] |= 0x00000008u; |
1999 | 0 | } |
2000 | 0 | inline void EchoRequest::clear_has_sleep_us() { |
2001 | 0 | _has_bits_[0] &= ~0x00000008u; |
2002 | 0 | } |
2003 | 0 | inline void EchoRequest::clear_sleep_us() { |
2004 | 0 | sleep_us_ = 0; |
2005 | 0 | clear_has_sleep_us(); |
2006 | 0 | } |
2007 | 0 | inline ::google::protobuf::int32 EchoRequest::sleep_us() const { |
2008 | | // @@protoc_insertion_point(field_get:test.EchoRequest.sleep_us) |
2009 | 0 | return sleep_us_; |
2010 | 0 | } |
2011 | 0 | inline void EchoRequest::set_sleep_us(::google::protobuf::int32 value) { |
2012 | 0 | set_has_sleep_us(); |
2013 | 0 | sleep_us_ = value; |
2014 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.sleep_us) |
2015 | 0 | } |
2016 | | |
2017 | | // optional int32 server_fail = 5; |
2018 | 0 | inline bool EchoRequest::has_server_fail() const { |
2019 | 0 | return (_has_bits_[0] & 0x00000010u) != 0; |
2020 | 0 | } |
2021 | 0 | inline void EchoRequest::set_has_server_fail() { |
2022 | 0 | _has_bits_[0] |= 0x00000010u; |
2023 | 0 | } |
2024 | 0 | inline void EchoRequest::clear_has_server_fail() { |
2025 | 0 | _has_bits_[0] &= ~0x00000010u; |
2026 | 0 | } |
2027 | 0 | inline void EchoRequest::clear_server_fail() { |
2028 | 0 | server_fail_ = 0; |
2029 | 0 | clear_has_server_fail(); |
2030 | 0 | } |
2031 | 0 | inline ::google::protobuf::int32 EchoRequest::server_fail() const { |
2032 | | // @@protoc_insertion_point(field_get:test.EchoRequest.server_fail) |
2033 | 0 | return server_fail_; |
2034 | 0 | } |
2035 | 0 | inline void EchoRequest::set_server_fail(::google::protobuf::int32 value) { |
2036 | 0 | set_has_server_fail(); |
2037 | 0 | server_fail_ = value; |
2038 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.server_fail) |
2039 | 0 | } |
2040 | | |
2041 | | // ------------------------------------------------------------------- |
2042 | | |
2043 | | // EchoResponse |
2044 | | |
2045 | | // required string message = 1; |
2046 | 0 | inline bool EchoResponse::has_message() const { |
2047 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
2048 | 0 | } |
2049 | 0 | inline void EchoResponse::set_has_message() { |
2050 | 0 | _has_bits_[0] |= 0x00000001u; |
2051 | 0 | } |
2052 | 0 | inline void EchoResponse::clear_has_message() { |
2053 | 0 | _has_bits_[0] &= ~0x00000001u; |
2054 | 0 | } |
2055 | 0 | inline void EchoResponse::clear_message() { |
2056 | 0 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2057 | 0 | clear_has_message(); |
2058 | 0 | } |
2059 | 0 | inline const ::std::string& EchoResponse::message() const { |
2060 | | // @@protoc_insertion_point(field_get:test.EchoResponse.message) |
2061 | 0 | return message_.GetNoArena(); |
2062 | 0 | } |
2063 | 0 | inline void EchoResponse::set_message(const ::std::string& value) { |
2064 | 0 | set_has_message(); |
2065 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2066 | 0 | // @@protoc_insertion_point(field_set:test.EchoResponse.message) |
2067 | 0 | } |
2068 | | #if LANG_CXX11 |
2069 | 0 | inline void EchoResponse::set_message(::std::string&& value) { |
2070 | 0 | set_has_message(); |
2071 | 0 | message_.SetNoArena( |
2072 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2073 | 0 | // @@protoc_insertion_point(field_set_rvalue:test.EchoResponse.message) |
2074 | 0 | } |
2075 | | #endif |
2076 | 0 | inline void EchoResponse::set_message(const char* value) { |
2077 | 0 | GOOGLE_DCHECK(value != NULL); |
2078 | 0 | set_has_message(); |
2079 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2080 | 0 | // @@protoc_insertion_point(field_set_char:test.EchoResponse.message) |
2081 | 0 | } |
2082 | 0 | inline void EchoResponse::set_message(const char* value, size_t size) { |
2083 | 0 | set_has_message(); |
2084 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2085 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2086 | 0 | // @@protoc_insertion_point(field_set_pointer:test.EchoResponse.message) |
2087 | 0 | } |
2088 | 0 | inline ::std::string* EchoResponse::mutable_message() { |
2089 | 0 | set_has_message(); |
2090 | | // @@protoc_insertion_point(field_mutable:test.EchoResponse.message) |
2091 | 0 | return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2092 | 0 | } |
2093 | 0 | inline ::std::string* EchoResponse::release_message() { |
2094 | 0 | // @@protoc_insertion_point(field_release:test.EchoResponse.message) |
2095 | 0 | if (!has_message()) { |
2096 | 0 | return NULL; |
2097 | 0 | } |
2098 | 0 | clear_has_message(); |
2099 | 0 | return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2100 | 0 | } |
2101 | 0 | inline void EchoResponse::set_allocated_message(::std::string* message) { |
2102 | 0 | if (message != NULL) { |
2103 | 0 | set_has_message(); |
2104 | 0 | } else { |
2105 | 0 | clear_has_message(); |
2106 | 0 | } |
2107 | 0 | message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); |
2108 | 0 | // @@protoc_insertion_point(field_set_allocated:test.EchoResponse.message) |
2109 | 0 | } |
2110 | | |
2111 | | // repeated int32 code_list = 2; |
2112 | 0 | inline int EchoResponse::code_list_size() const { |
2113 | 0 | return code_list_.size(); |
2114 | 0 | } |
2115 | 0 | inline void EchoResponse::clear_code_list() { |
2116 | 0 | code_list_.Clear(); |
2117 | 0 | } |
2118 | 0 | inline ::google::protobuf::int32 EchoResponse::code_list(int index) const { |
2119 | | // @@protoc_insertion_point(field_get:test.EchoResponse.code_list) |
2120 | 0 | return code_list_.Get(index); |
2121 | 0 | } |
2122 | 0 | inline void EchoResponse::set_code_list(int index, ::google::protobuf::int32 value) { |
2123 | 0 | code_list_.Set(index, value); |
2124 | 0 | // @@protoc_insertion_point(field_set:test.EchoResponse.code_list) |
2125 | 0 | } |
2126 | 0 | inline void EchoResponse::add_code_list(::google::protobuf::int32 value) { |
2127 | 0 | code_list_.Add(value); |
2128 | 0 | // @@protoc_insertion_point(field_add:test.EchoResponse.code_list) |
2129 | 0 | } |
2130 | | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
2131 | 0 | EchoResponse::code_list() const { |
2132 | 0 | // @@protoc_insertion_point(field_list:test.EchoResponse.code_list) |
2133 | 0 | return code_list_; |
2134 | 0 | } |
2135 | | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
2136 | 0 | EchoResponse::mutable_code_list() { |
2137 | | // @@protoc_insertion_point(field_mutable_list:test.EchoResponse.code_list) |
2138 | 0 | return &code_list_; |
2139 | 0 | } |
2140 | | |
2141 | | // optional uint64 receiving_socket_id = 3; |
2142 | 0 | inline bool EchoResponse::has_receiving_socket_id() const { |
2143 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
2144 | 0 | } |
2145 | 0 | inline void EchoResponse::set_has_receiving_socket_id() { |
2146 | 0 | _has_bits_[0] |= 0x00000002u; |
2147 | 0 | } |
2148 | 0 | inline void EchoResponse::clear_has_receiving_socket_id() { |
2149 | 0 | _has_bits_[0] &= ~0x00000002u; |
2150 | 0 | } |
2151 | 0 | inline void EchoResponse::clear_receiving_socket_id() { |
2152 | 0 | receiving_socket_id_ = GOOGLE_ULONGLONG(0); |
2153 | 0 | clear_has_receiving_socket_id(); |
2154 | 0 | } |
2155 | 0 | inline ::google::protobuf::uint64 EchoResponse::receiving_socket_id() const { |
2156 | | // @@protoc_insertion_point(field_get:test.EchoResponse.receiving_socket_id) |
2157 | 0 | return receiving_socket_id_; |
2158 | 0 | } |
2159 | 0 | inline void EchoResponse::set_receiving_socket_id(::google::protobuf::uint64 value) { |
2160 | 0 | set_has_receiving_socket_id(); |
2161 | 0 | receiving_socket_id_ = value; |
2162 | 0 | // @@protoc_insertion_point(field_set:test.EchoResponse.receiving_socket_id) |
2163 | 0 | } |
2164 | | |
2165 | | // ------------------------------------------------------------------- |
2166 | | |
2167 | | // ComboRequest |
2168 | | |
2169 | | // repeated .test.EchoRequest requests = 1; |
2170 | 0 | inline int ComboRequest::requests_size() const { |
2171 | 0 | return requests_.size(); |
2172 | 0 | } |
2173 | 0 | inline void ComboRequest::clear_requests() { |
2174 | 0 | requests_.Clear(); |
2175 | 0 | } |
2176 | 0 | inline ::test::EchoRequest* ComboRequest::mutable_requests(int index) { |
2177 | 0 | // @@protoc_insertion_point(field_mutable:test.ComboRequest.requests) |
2178 | 0 | return requests_.Mutable(index); |
2179 | 0 | } |
2180 | | inline ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >* |
2181 | 0 | ComboRequest::mutable_requests() { |
2182 | 0 | // @@protoc_insertion_point(field_mutable_list:test.ComboRequest.requests) |
2183 | 0 | return &requests_; |
2184 | 0 | } |
2185 | 0 | inline const ::test::EchoRequest& ComboRequest::requests(int index) const { |
2186 | | // @@protoc_insertion_point(field_get:test.ComboRequest.requests) |
2187 | 0 | return requests_.Get(index); |
2188 | 0 | } |
2189 | 0 | inline ::test::EchoRequest* ComboRequest::add_requests() { |
2190 | | // @@protoc_insertion_point(field_add:test.ComboRequest.requests) |
2191 | 0 | return requests_.Add(); |
2192 | 0 | } |
2193 | | inline const ::google::protobuf::RepeatedPtrField< ::test::EchoRequest >& |
2194 | 0 | ComboRequest::requests() const { |
2195 | | // @@protoc_insertion_point(field_list:test.ComboRequest.requests) |
2196 | 0 | return requests_; |
2197 | 0 | } |
2198 | | |
2199 | | // ------------------------------------------------------------------- |
2200 | | |
2201 | | // BytesRequest |
2202 | | |
2203 | | // required bytes databytes = 1; |
2204 | 0 | inline bool BytesRequest::has_databytes() const { |
2205 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
2206 | 0 | } |
2207 | 0 | inline void BytesRequest::set_has_databytes() { |
2208 | 0 | _has_bits_[0] |= 0x00000001u; |
2209 | 0 | } |
2210 | 0 | inline void BytesRequest::clear_has_databytes() { |
2211 | 0 | _has_bits_[0] &= ~0x00000001u; |
2212 | 0 | } |
2213 | 0 | inline void BytesRequest::clear_databytes() { |
2214 | 0 | databytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2215 | 0 | clear_has_databytes(); |
2216 | 0 | } |
2217 | 0 | inline const ::std::string& BytesRequest::databytes() const { |
2218 | | // @@protoc_insertion_point(field_get:test.BytesRequest.databytes) |
2219 | 0 | return databytes_.GetNoArena(); |
2220 | 0 | } |
2221 | 0 | inline void BytesRequest::set_databytes(const ::std::string& value) { |
2222 | 0 | set_has_databytes(); |
2223 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2224 | 0 | // @@protoc_insertion_point(field_set:test.BytesRequest.databytes) |
2225 | 0 | } |
2226 | | #if LANG_CXX11 |
2227 | 0 | inline void BytesRequest::set_databytes(::std::string&& value) { |
2228 | 0 | set_has_databytes(); |
2229 | 0 | databytes_.SetNoArena( |
2230 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2231 | 0 | // @@protoc_insertion_point(field_set_rvalue:test.BytesRequest.databytes) |
2232 | 0 | } |
2233 | | #endif |
2234 | 0 | inline void BytesRequest::set_databytes(const char* value) { |
2235 | 0 | GOOGLE_DCHECK(value != NULL); |
2236 | 0 | set_has_databytes(); |
2237 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2238 | 0 | // @@protoc_insertion_point(field_set_char:test.BytesRequest.databytes) |
2239 | 0 | } |
2240 | 0 | inline void BytesRequest::set_databytes(const void* value, size_t size) { |
2241 | 0 | set_has_databytes(); |
2242 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2243 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2244 | 0 | // @@protoc_insertion_point(field_set_pointer:test.BytesRequest.databytes) |
2245 | 0 | } |
2246 | 0 | inline ::std::string* BytesRequest::mutable_databytes() { |
2247 | 0 | set_has_databytes(); |
2248 | | // @@protoc_insertion_point(field_mutable:test.BytesRequest.databytes) |
2249 | 0 | return databytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2250 | 0 | } |
2251 | 0 | inline ::std::string* BytesRequest::release_databytes() { |
2252 | 0 | // @@protoc_insertion_point(field_release:test.BytesRequest.databytes) |
2253 | 0 | if (!has_databytes()) { |
2254 | 0 | return NULL; |
2255 | 0 | } |
2256 | 0 | clear_has_databytes(); |
2257 | 0 | return databytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2258 | 0 | } |
2259 | 0 | inline void BytesRequest::set_allocated_databytes(::std::string* databytes) { |
2260 | 0 | if (databytes != NULL) { |
2261 | 0 | set_has_databytes(); |
2262 | 0 | } else { |
2263 | 0 | clear_has_databytes(); |
2264 | 0 | } |
2265 | 0 | databytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databytes); |
2266 | 0 | // @@protoc_insertion_point(field_set_allocated:test.BytesRequest.databytes) |
2267 | 0 | } |
2268 | | |
2269 | | // ------------------------------------------------------------------- |
2270 | | |
2271 | | // BytesResponse |
2272 | | |
2273 | | // required bytes databytes = 1; |
2274 | 0 | inline bool BytesResponse::has_databytes() const { |
2275 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
2276 | 0 | } |
2277 | 0 | inline void BytesResponse::set_has_databytes() { |
2278 | 0 | _has_bits_[0] |= 0x00000001u; |
2279 | 0 | } |
2280 | 0 | inline void BytesResponse::clear_has_databytes() { |
2281 | 0 | _has_bits_[0] &= ~0x00000001u; |
2282 | 0 | } |
2283 | 0 | inline void BytesResponse::clear_databytes() { |
2284 | 0 | databytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2285 | 0 | clear_has_databytes(); |
2286 | 0 | } |
2287 | 0 | inline const ::std::string& BytesResponse::databytes() const { |
2288 | | // @@protoc_insertion_point(field_get:test.BytesResponse.databytes) |
2289 | 0 | return databytes_.GetNoArena(); |
2290 | 0 | } |
2291 | 0 | inline void BytesResponse::set_databytes(const ::std::string& value) { |
2292 | 0 | set_has_databytes(); |
2293 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2294 | 0 | // @@protoc_insertion_point(field_set:test.BytesResponse.databytes) |
2295 | 0 | } |
2296 | | #if LANG_CXX11 |
2297 | 0 | inline void BytesResponse::set_databytes(::std::string&& value) { |
2298 | 0 | set_has_databytes(); |
2299 | 0 | databytes_.SetNoArena( |
2300 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2301 | 0 | // @@protoc_insertion_point(field_set_rvalue:test.BytesResponse.databytes) |
2302 | 0 | } |
2303 | | #endif |
2304 | 0 | inline void BytesResponse::set_databytes(const char* value) { |
2305 | 0 | GOOGLE_DCHECK(value != NULL); |
2306 | 0 | set_has_databytes(); |
2307 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2308 | 0 | // @@protoc_insertion_point(field_set_char:test.BytesResponse.databytes) |
2309 | 0 | } |
2310 | 0 | inline void BytesResponse::set_databytes(const void* value, size_t size) { |
2311 | 0 | set_has_databytes(); |
2312 | 0 | databytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2313 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2314 | 0 | // @@protoc_insertion_point(field_set_pointer:test.BytesResponse.databytes) |
2315 | 0 | } |
2316 | 0 | inline ::std::string* BytesResponse::mutable_databytes() { |
2317 | 0 | set_has_databytes(); |
2318 | | // @@protoc_insertion_point(field_mutable:test.BytesResponse.databytes) |
2319 | 0 | return databytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2320 | 0 | } |
2321 | 0 | inline ::std::string* BytesResponse::release_databytes() { |
2322 | 0 | // @@protoc_insertion_point(field_release:test.BytesResponse.databytes) |
2323 | 0 | if (!has_databytes()) { |
2324 | 0 | return NULL; |
2325 | 0 | } |
2326 | 0 | clear_has_databytes(); |
2327 | 0 | return databytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2328 | 0 | } |
2329 | 0 | inline void BytesResponse::set_allocated_databytes(::std::string* databytes) { |
2330 | 0 | if (databytes != NULL) { |
2331 | 0 | set_has_databytes(); |
2332 | 0 | } else { |
2333 | 0 | clear_has_databytes(); |
2334 | 0 | } |
2335 | 0 | databytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databytes); |
2336 | 0 | // @@protoc_insertion_point(field_set_allocated:test.BytesResponse.databytes) |
2337 | 0 | } |
2338 | | |
2339 | | // ------------------------------------------------------------------- |
2340 | | |
2341 | | // ComboResponse |
2342 | | |
2343 | | // repeated .test.EchoResponse responses = 1; |
2344 | 0 | inline int ComboResponse::responses_size() const { |
2345 | 0 | return responses_.size(); |
2346 | 0 | } |
2347 | 0 | inline void ComboResponse::clear_responses() { |
2348 | 0 | responses_.Clear(); |
2349 | 0 | } |
2350 | 0 | inline ::test::EchoResponse* ComboResponse::mutable_responses(int index) { |
2351 | 0 | // @@protoc_insertion_point(field_mutable:test.ComboResponse.responses) |
2352 | 0 | return responses_.Mutable(index); |
2353 | 0 | } |
2354 | | inline ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >* |
2355 | 0 | ComboResponse::mutable_responses() { |
2356 | 0 | // @@protoc_insertion_point(field_mutable_list:test.ComboResponse.responses) |
2357 | 0 | return &responses_; |
2358 | 0 | } |
2359 | 0 | inline const ::test::EchoResponse& ComboResponse::responses(int index) const { |
2360 | | // @@protoc_insertion_point(field_get:test.ComboResponse.responses) |
2361 | 0 | return responses_.Get(index); |
2362 | 0 | } |
2363 | 0 | inline ::test::EchoResponse* ComboResponse::add_responses() { |
2364 | | // @@protoc_insertion_point(field_add:test.ComboResponse.responses) |
2365 | 0 | return responses_.Add(); |
2366 | 0 | } |
2367 | | inline const ::google::protobuf::RepeatedPtrField< ::test::EchoResponse >& |
2368 | 0 | ComboResponse::responses() const { |
2369 | | // @@protoc_insertion_point(field_list:test.ComboResponse.responses) |
2370 | 0 | return responses_; |
2371 | 0 | } |
2372 | | |
2373 | | // ------------------------------------------------------------------- |
2374 | | |
2375 | | // HttpRequest |
2376 | | |
2377 | | // ------------------------------------------------------------------- |
2378 | | |
2379 | | // HttpResponse |
2380 | | |
2381 | | // ------------------------------------------------------------------- |
2382 | | |
2383 | | // Message1 |
2384 | | |
2385 | | // required .test.State0 stat = 1; |
2386 | 0 | inline bool Message1::has_stat() const { |
2387 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
2388 | 0 | } |
2389 | 0 | inline void Message1::set_has_stat() { |
2390 | 0 | _has_bits_[0] |= 0x00000001u; |
2391 | 0 | } |
2392 | 0 | inline void Message1::clear_has_stat() { |
2393 | 0 | _has_bits_[0] &= ~0x00000001u; |
2394 | 0 | } |
2395 | 0 | inline void Message1::clear_stat() { |
2396 | 0 | stat_ = 0; |
2397 | 0 | clear_has_stat(); |
2398 | 0 | } |
2399 | 0 | inline ::test::State0 Message1::stat() const { |
2400 | | // @@protoc_insertion_point(field_get:test.Message1.stat) |
2401 | 0 | return static_cast< ::test::State0 >(stat_); |
2402 | 0 | } |
2403 | 0 | inline void Message1::set_stat(::test::State0 value) { |
2404 | 0 | assert(::test::State0_IsValid(value)); |
2405 | 0 | set_has_stat(); |
2406 | 0 | stat_ = value; |
2407 | | // @@protoc_insertion_point(field_set:test.Message1.stat) |
2408 | 0 | } |
2409 | | |
2410 | | // ------------------------------------------------------------------- |
2411 | | |
2412 | | // Message2 |
2413 | | |
2414 | | // required .test.State1 stat = 1; |
2415 | 0 | inline bool Message2::has_stat() const { |
2416 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
2417 | 0 | } |
2418 | 0 | inline void Message2::set_has_stat() { |
2419 | 0 | _has_bits_[0] |= 0x00000001u; |
2420 | 0 | } |
2421 | 0 | inline void Message2::clear_has_stat() { |
2422 | 0 | _has_bits_[0] &= ~0x00000001u; |
2423 | 0 | } |
2424 | 0 | inline void Message2::clear_stat() { |
2425 | 0 | stat_ = 0; |
2426 | 0 | clear_has_stat(); |
2427 | 0 | } |
2428 | 0 | inline ::test::State1 Message2::stat() const { |
2429 | | // @@protoc_insertion_point(field_get:test.Message2.stat) |
2430 | 0 | return static_cast< ::test::State1 >(stat_); |
2431 | 0 | } |
2432 | 0 | inline void Message2::set_stat(::test::State1 value) { |
2433 | 0 | assert(::test::State1_IsValid(value)); |
2434 | 0 | set_has_stat(); |
2435 | 0 | stat_ = value; |
2436 | | // @@protoc_insertion_point(field_set:test.Message2.stat) |
2437 | 0 | } |
2438 | | |
2439 | | #ifdef __GNUC__ |
2440 | | #pragma GCC diagnostic pop |
2441 | | #endif // __GNUC__ |
2442 | | // ------------------------------------------------------------------- |
2443 | | |
2444 | | // ------------------------------------------------------------------- |
2445 | | |
2446 | | // ------------------------------------------------------------------- |
2447 | | |
2448 | | // ------------------------------------------------------------------- |
2449 | | |
2450 | | // ------------------------------------------------------------------- |
2451 | | |
2452 | | // ------------------------------------------------------------------- |
2453 | | |
2454 | | // ------------------------------------------------------------------- |
2455 | | |
2456 | | // ------------------------------------------------------------------- |
2457 | | |
2458 | | // ------------------------------------------------------------------- |
2459 | | |
2460 | | |
2461 | | // @@protoc_insertion_point(namespace_scope) |
2462 | | |
2463 | | } // namespace test |
2464 | | |
2465 | | namespace google { |
2466 | | namespace protobuf { |
2467 | | |
2468 | | template <> struct is_proto_enum< ::test::State0> : ::std::true_type {}; |
2469 | | template <> |
2470 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::test::State0>() { |
2471 | 0 | return ::test::State0_descriptor(); |
2472 | 0 | } |
2473 | | template <> struct is_proto_enum< ::test::State1> : ::std::true_type {}; |
2474 | | template <> |
2475 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::test::State1>() { |
2476 | 0 | return ::test::State1_descriptor(); |
2477 | 0 | } |
2478 | | |
2479 | | } // namespace protobuf |
2480 | | } // namespace google |
2481 | | |
2482 | | // @@protoc_insertion_point(global_scope) |
2483 | | |
2484 | | #endif // PROTOBUF_INCLUDED_echo_2eproto |