/src/brpc/build/test/echo.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: echo.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_echo_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_echo_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
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 3021012 < 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/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_bases.h> |
27 | | #include <google/protobuf/generated_message_util.h> |
28 | | #include <google/protobuf/metadata_lite.h> |
29 | | #include <google/protobuf/generated_message_reflection.h> |
30 | | #include <google/protobuf/message.h> |
31 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
33 | | #include <google/protobuf/generated_enum_reflection.h> |
34 | | #include <google/protobuf/service.h> |
35 | | #include <google/protobuf/unknown_field_set.h> |
36 | | #include "idl_options.pb.h" |
37 | | // @@protoc_insertion_point(includes) |
38 | | #include <google/protobuf/port_def.inc> |
39 | | #define PROTOBUF_INTERNAL_EXPORT_echo_2eproto |
40 | | PROTOBUF_NAMESPACE_OPEN |
41 | | namespace internal { |
42 | | class AnyMetadata; |
43 | | } // namespace internal |
44 | | PROTOBUF_NAMESPACE_CLOSE |
45 | | |
46 | | // Internal implementation detail -- do not use these members. |
47 | | struct TableStruct_echo_2eproto { |
48 | | static const uint32_t offsets[]; |
49 | | }; |
50 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_echo_2eproto; |
51 | | namespace test { |
52 | | class BytesRequest; |
53 | | struct BytesRequestDefaultTypeInternal; |
54 | | extern BytesRequestDefaultTypeInternal _BytesRequest_default_instance_; |
55 | | class BytesResponse; |
56 | | struct BytesResponseDefaultTypeInternal; |
57 | | extern BytesResponseDefaultTypeInternal _BytesResponse_default_instance_; |
58 | | class ComboRequest; |
59 | | struct ComboRequestDefaultTypeInternal; |
60 | | extern ComboRequestDefaultTypeInternal _ComboRequest_default_instance_; |
61 | | class ComboResponse; |
62 | | struct ComboResponseDefaultTypeInternal; |
63 | | extern ComboResponseDefaultTypeInternal _ComboResponse_default_instance_; |
64 | | class EchoRequest; |
65 | | struct EchoRequestDefaultTypeInternal; |
66 | | extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
67 | | class EchoResponse; |
68 | | struct EchoResponseDefaultTypeInternal; |
69 | | extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
70 | | class HttpRequest; |
71 | | struct HttpRequestDefaultTypeInternal; |
72 | | extern HttpRequestDefaultTypeInternal _HttpRequest_default_instance_; |
73 | | class HttpResponse; |
74 | | struct HttpResponseDefaultTypeInternal; |
75 | | extern HttpResponseDefaultTypeInternal _HttpResponse_default_instance_; |
76 | | class Message1; |
77 | | struct Message1DefaultTypeInternal; |
78 | | extern Message1DefaultTypeInternal _Message1_default_instance_; |
79 | | class Message2; |
80 | | struct Message2DefaultTypeInternal; |
81 | | extern Message2DefaultTypeInternal _Message2_default_instance_; |
82 | | class RecursiveMessage; |
83 | | struct RecursiveMessageDefaultTypeInternal; |
84 | | extern RecursiveMessageDefaultTypeInternal _RecursiveMessage_default_instance_; |
85 | | } // namespace test |
86 | | PROTOBUF_NAMESPACE_OPEN |
87 | | template<> ::test::BytesRequest* Arena::CreateMaybeMessage<::test::BytesRequest>(Arena*); |
88 | | template<> ::test::BytesResponse* Arena::CreateMaybeMessage<::test::BytesResponse>(Arena*); |
89 | | template<> ::test::ComboRequest* Arena::CreateMaybeMessage<::test::ComboRequest>(Arena*); |
90 | | template<> ::test::ComboResponse* Arena::CreateMaybeMessage<::test::ComboResponse>(Arena*); |
91 | | template<> ::test::EchoRequest* Arena::CreateMaybeMessage<::test::EchoRequest>(Arena*); |
92 | | template<> ::test::EchoResponse* Arena::CreateMaybeMessage<::test::EchoResponse>(Arena*); |
93 | | template<> ::test::HttpRequest* Arena::CreateMaybeMessage<::test::HttpRequest>(Arena*); |
94 | | template<> ::test::HttpResponse* Arena::CreateMaybeMessage<::test::HttpResponse>(Arena*); |
95 | | template<> ::test::Message1* Arena::CreateMaybeMessage<::test::Message1>(Arena*); |
96 | | template<> ::test::Message2* Arena::CreateMaybeMessage<::test::Message2>(Arena*); |
97 | | template<> ::test::RecursiveMessage* Arena::CreateMaybeMessage<::test::RecursiveMessage>(Arena*); |
98 | | PROTOBUF_NAMESPACE_CLOSE |
99 | | namespace test { |
100 | | |
101 | | enum State0 : int { |
102 | | STATE0_NUM_0 = 0, |
103 | | STATE0_NUM_1 = 1, |
104 | | STATE0_NUM_2 = 2 |
105 | | }; |
106 | | bool State0_IsValid(int value); |
107 | | constexpr State0 State0_MIN = STATE0_NUM_0; |
108 | | constexpr State0 State0_MAX = STATE0_NUM_2; |
109 | | constexpr int State0_ARRAYSIZE = State0_MAX + 1; |
110 | | |
111 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State0_descriptor(); |
112 | | template<typename T> |
113 | | inline const std::string& State0_Name(T enum_t_value) { |
114 | | static_assert(::std::is_same<T, State0>::value || |
115 | | ::std::is_integral<T>::value, |
116 | | "Incorrect type passed to function State0_Name."); |
117 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
118 | | State0_descriptor(), enum_t_value); |
119 | | } |
120 | | inline bool State0_Parse( |
121 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, State0* value) { |
122 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<State0>( |
123 | 0 | State0_descriptor(), name, value); |
124 | 0 | } |
125 | | enum State1 : int { |
126 | | STATE1_NUM_0 = 0, |
127 | | STATE1_NUM_1 = 1 |
128 | | }; |
129 | | bool State1_IsValid(int value); |
130 | | constexpr State1 State1_MIN = STATE1_NUM_0; |
131 | | constexpr State1 State1_MAX = STATE1_NUM_1; |
132 | | constexpr int State1_ARRAYSIZE = State1_MAX + 1; |
133 | | |
134 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State1_descriptor(); |
135 | | template<typename T> |
136 | | inline const std::string& State1_Name(T enum_t_value) { |
137 | | static_assert(::std::is_same<T, State1>::value || |
138 | | ::std::is_integral<T>::value, |
139 | | "Incorrect type passed to function State1_Name."); |
140 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
141 | | State1_descriptor(), enum_t_value); |
142 | | } |
143 | | inline bool State1_Parse( |
144 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, State1* value) { |
145 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<State1>( |
146 | 0 | State1_descriptor(), name, value); |
147 | 0 | } |
148 | | // =================================================================== |
149 | | |
150 | | class EchoRequest final : |
151 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.EchoRequest) */ { |
152 | | public: |
153 | 0 | inline EchoRequest() : EchoRequest(nullptr) {} |
154 | | ~EchoRequest() override; |
155 | | explicit PROTOBUF_CONSTEXPR EchoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
156 | | |
157 | | EchoRequest(const EchoRequest& from); |
158 | | EchoRequest(EchoRequest&& from) noexcept |
159 | 0 | : EchoRequest() { |
160 | 0 | *this = ::std::move(from); |
161 | 0 | } |
162 | | |
163 | 0 | inline EchoRequest& operator=(const EchoRequest& from) { |
164 | 0 | CopyFrom(from); |
165 | 0 | return *this; |
166 | 0 | } |
167 | 0 | inline EchoRequest& operator=(EchoRequest&& from) noexcept { |
168 | 0 | if (this == &from) return *this; |
169 | 0 | if (GetOwningArena() == from.GetOwningArena() |
170 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
171 | 0 | && GetOwningArena() != nullptr |
172 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
173 | 0 | ) { |
174 | 0 | InternalSwap(&from); |
175 | 0 | } else { |
176 | 0 | CopyFrom(from); |
177 | 0 | } |
178 | 0 | return *this; |
179 | 0 | } |
180 | | |
181 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
182 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
183 | 0 | } |
184 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
185 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
186 | 0 | } |
187 | | |
188 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
189 | 0 | return GetDescriptor(); |
190 | 0 | } |
191 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
192 | 0 | return default_instance().GetMetadata().descriptor; |
193 | 0 | } |
194 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
195 | 0 | return default_instance().GetMetadata().reflection; |
196 | 0 | } |
197 | 0 | static const EchoRequest& default_instance() { |
198 | 0 | return *internal_default_instance(); |
199 | 0 | } |
200 | 0 | static inline const EchoRequest* internal_default_instance() { |
201 | 0 | return reinterpret_cast<const EchoRequest*>( |
202 | 0 | &_EchoRequest_default_instance_); |
203 | 0 | } |
204 | | static constexpr int kIndexInFileMessages = |
205 | | 0; |
206 | | |
207 | 0 | friend void swap(EchoRequest& a, EchoRequest& b) { |
208 | 0 | a.Swap(&b); |
209 | 0 | } |
210 | 0 | inline void Swap(EchoRequest* other) { |
211 | 0 | if (other == this) return; |
212 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
213 | 0 | if (GetOwningArena() != nullptr && |
214 | 0 | GetOwningArena() == other->GetOwningArena()) { |
215 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
216 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
217 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
218 | 0 | InternalSwap(other); |
219 | 0 | } else { |
220 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
221 | 0 | } |
222 | 0 | } |
223 | 0 | void UnsafeArenaSwap(EchoRequest* other) { |
224 | 0 | if (other == this) return; |
225 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
226 | 0 | InternalSwap(other); |
227 | 0 | } |
228 | | |
229 | | // implements Message ---------------------------------------------- |
230 | | |
231 | 0 | EchoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
232 | 0 | return CreateMaybeMessage<EchoRequest>(arena); |
233 | 0 | } |
234 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
235 | | void CopyFrom(const EchoRequest& from); |
236 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
237 | 0 | void MergeFrom( const EchoRequest& from) { |
238 | 0 | EchoRequest::MergeImpl(*this, from); |
239 | 0 | } |
240 | | private: |
241 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
242 | | public: |
243 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
244 | | bool IsInitialized() const final; |
245 | | |
246 | | size_t ByteSizeLong() const final; |
247 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
248 | | uint8_t* _InternalSerialize( |
249 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
250 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
251 | | |
252 | | private: |
253 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
254 | | void SharedDtor(); |
255 | | void SetCachedSize(int size) const final; |
256 | | void InternalSwap(EchoRequest* other); |
257 | | |
258 | | private: |
259 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
260 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
261 | 0 | return "test.EchoRequest"; |
262 | 0 | } |
263 | | protected: |
264 | | explicit EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
265 | | bool is_message_owned = false); |
266 | | public: |
267 | | |
268 | | static const ClassData _class_data_; |
269 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
270 | | |
271 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
272 | | |
273 | | // nested types ---------------------------------------------------- |
274 | | |
275 | | // accessors ------------------------------------------------------- |
276 | | |
277 | | enum : int { |
278 | | kMessageFieldNumber = 1, |
279 | | kHttpHeaderFieldNumber = 6, |
280 | | kCodeFieldNumber = 2, |
281 | | kCloseFdFieldNumber = 3, |
282 | | kSleepUsFieldNumber = 4, |
283 | | kServerFailFieldNumber = 5, |
284 | | }; |
285 | | // required string message = 1; |
286 | | bool has_message() const; |
287 | | private: |
288 | | bool _internal_has_message() const; |
289 | | public: |
290 | | void clear_message(); |
291 | | const std::string& message() const; |
292 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
293 | | void set_message(ArgT0&& arg0, ArgT... args); |
294 | | std::string* mutable_message(); |
295 | | PROTOBUF_NODISCARD std::string* release_message(); |
296 | | void set_allocated_message(std::string* message); |
297 | | private: |
298 | | const std::string& _internal_message() const; |
299 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); |
300 | | std::string* _internal_mutable_message(); |
301 | | public: |
302 | | |
303 | | // optional string http_header = 6; |
304 | | bool has_http_header() const; |
305 | | private: |
306 | | bool _internal_has_http_header() const; |
307 | | public: |
308 | | void clear_http_header(); |
309 | | const std::string& http_header() const; |
310 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
311 | | void set_http_header(ArgT0&& arg0, ArgT... args); |
312 | | std::string* mutable_http_header(); |
313 | | PROTOBUF_NODISCARD std::string* release_http_header(); |
314 | | void set_allocated_http_header(std::string* http_header); |
315 | | private: |
316 | | const std::string& _internal_http_header() const; |
317 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_http_header(const std::string& value); |
318 | | std::string* _internal_mutable_http_header(); |
319 | | public: |
320 | | |
321 | | // optional int32 code = 2; |
322 | | bool has_code() const; |
323 | | private: |
324 | | bool _internal_has_code() const; |
325 | | public: |
326 | | void clear_code(); |
327 | | int32_t code() const; |
328 | | void set_code(int32_t value); |
329 | | private: |
330 | | int32_t _internal_code() const; |
331 | | void _internal_set_code(int32_t value); |
332 | | public: |
333 | | |
334 | | // optional bool close_fd = 3; |
335 | | bool has_close_fd() const; |
336 | | private: |
337 | | bool _internal_has_close_fd() const; |
338 | | public: |
339 | | void clear_close_fd(); |
340 | | bool close_fd() const; |
341 | | void set_close_fd(bool value); |
342 | | private: |
343 | | bool _internal_close_fd() const; |
344 | | void _internal_set_close_fd(bool value); |
345 | | public: |
346 | | |
347 | | // optional int32 sleep_us = 4; |
348 | | bool has_sleep_us() const; |
349 | | private: |
350 | | bool _internal_has_sleep_us() const; |
351 | | public: |
352 | | void clear_sleep_us(); |
353 | | int32_t sleep_us() const; |
354 | | void set_sleep_us(int32_t value); |
355 | | private: |
356 | | int32_t _internal_sleep_us() const; |
357 | | void _internal_set_sleep_us(int32_t value); |
358 | | public: |
359 | | |
360 | | // optional int32 server_fail = 5; |
361 | | bool has_server_fail() const; |
362 | | private: |
363 | | bool _internal_has_server_fail() const; |
364 | | public: |
365 | | void clear_server_fail(); |
366 | | int32_t server_fail() const; |
367 | | void set_server_fail(int32_t value); |
368 | | private: |
369 | | int32_t _internal_server_fail() const; |
370 | | void _internal_set_server_fail(int32_t value); |
371 | | public: |
372 | | |
373 | | // @@protoc_insertion_point(class_scope:test.EchoRequest) |
374 | | private: |
375 | | class _Internal; |
376 | | |
377 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
378 | | typedef void InternalArenaConstructable_; |
379 | | typedef void DestructorSkippable_; |
380 | | struct Impl_ { |
381 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
382 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
383 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; |
384 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr http_header_; |
385 | | int32_t code_; |
386 | | bool close_fd_; |
387 | | int32_t sleep_us_; |
388 | | int32_t server_fail_; |
389 | | }; |
390 | | union { Impl_ _impl_; }; |
391 | | friend struct ::TableStruct_echo_2eproto; |
392 | | }; |
393 | | // ------------------------------------------------------------------- |
394 | | |
395 | | class EchoResponse final : |
396 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.EchoResponse) */ { |
397 | | public: |
398 | 0 | inline EchoResponse() : EchoResponse(nullptr) {} |
399 | | ~EchoResponse() override; |
400 | | explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
401 | | |
402 | | EchoResponse(const EchoResponse& from); |
403 | | EchoResponse(EchoResponse&& from) noexcept |
404 | 0 | : EchoResponse() { |
405 | 0 | *this = ::std::move(from); |
406 | 0 | } |
407 | | |
408 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
409 | 0 | CopyFrom(from); |
410 | 0 | return *this; |
411 | 0 | } |
412 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
413 | 0 | if (this == &from) return *this; |
414 | 0 | if (GetOwningArena() == from.GetOwningArena() |
415 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
416 | 0 | && GetOwningArena() != nullptr |
417 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
418 | 0 | ) { |
419 | 0 | InternalSwap(&from); |
420 | 0 | } else { |
421 | 0 | CopyFrom(from); |
422 | 0 | } |
423 | 0 | return *this; |
424 | 0 | } |
425 | | |
426 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
427 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
428 | 0 | } |
429 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
430 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
431 | 0 | } |
432 | | |
433 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
434 | 0 | return GetDescriptor(); |
435 | 0 | } |
436 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
437 | 0 | return default_instance().GetMetadata().descriptor; |
438 | 0 | } |
439 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
440 | 0 | return default_instance().GetMetadata().reflection; |
441 | 0 | } |
442 | 0 | static const EchoResponse& default_instance() { |
443 | 0 | return *internal_default_instance(); |
444 | 0 | } |
445 | 0 | static inline const EchoResponse* internal_default_instance() { |
446 | 0 | return reinterpret_cast<const EchoResponse*>( |
447 | 0 | &_EchoResponse_default_instance_); |
448 | 0 | } |
449 | | static constexpr int kIndexInFileMessages = |
450 | | 1; |
451 | | |
452 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
453 | 0 | a.Swap(&b); |
454 | 0 | } |
455 | 0 | inline void Swap(EchoResponse* other) { |
456 | 0 | if (other == this) return; |
457 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
458 | 0 | if (GetOwningArena() != nullptr && |
459 | 0 | GetOwningArena() == other->GetOwningArena()) { |
460 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
461 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
462 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
463 | 0 | InternalSwap(other); |
464 | 0 | } else { |
465 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
466 | 0 | } |
467 | 0 | } |
468 | 0 | void UnsafeArenaSwap(EchoResponse* other) { |
469 | 0 | if (other == this) return; |
470 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
471 | 0 | InternalSwap(other); |
472 | 0 | } |
473 | | |
474 | | // implements Message ---------------------------------------------- |
475 | | |
476 | 0 | EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
477 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
478 | 0 | } |
479 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
480 | | void CopyFrom(const EchoResponse& from); |
481 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
482 | 0 | void MergeFrom( const EchoResponse& from) { |
483 | 0 | EchoResponse::MergeImpl(*this, from); |
484 | 0 | } |
485 | | private: |
486 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
487 | | public: |
488 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
489 | | bool IsInitialized() const final; |
490 | | |
491 | | size_t ByteSizeLong() const final; |
492 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
493 | | uint8_t* _InternalSerialize( |
494 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
495 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
496 | | |
497 | | private: |
498 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
499 | | void SharedDtor(); |
500 | | void SetCachedSize(int size) const final; |
501 | | void InternalSwap(EchoResponse* other); |
502 | | |
503 | | private: |
504 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
505 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
506 | 0 | return "test.EchoResponse"; |
507 | 0 | } |
508 | | protected: |
509 | | explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
510 | | bool is_message_owned = false); |
511 | | public: |
512 | | |
513 | | static const ClassData _class_data_; |
514 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
515 | | |
516 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
517 | | |
518 | | // nested types ---------------------------------------------------- |
519 | | |
520 | | // accessors ------------------------------------------------------- |
521 | | |
522 | | enum : int { |
523 | | kCodeListFieldNumber = 2, |
524 | | kMessageFieldNumber = 1, |
525 | | kReceivingSocketIdFieldNumber = 3, |
526 | | }; |
527 | | // repeated int32 code_list = 2; |
528 | | int code_list_size() const; |
529 | | private: |
530 | | int _internal_code_list_size() const; |
531 | | public: |
532 | | void clear_code_list(); |
533 | | private: |
534 | | int32_t _internal_code_list(int index) const; |
535 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
536 | | _internal_code_list() const; |
537 | | void _internal_add_code_list(int32_t value); |
538 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
539 | | _internal_mutable_code_list(); |
540 | | public: |
541 | | int32_t code_list(int index) const; |
542 | | void set_code_list(int index, int32_t value); |
543 | | void add_code_list(int32_t value); |
544 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
545 | | code_list() const; |
546 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
547 | | mutable_code_list(); |
548 | | |
549 | | // required string message = 1; |
550 | | bool has_message() const; |
551 | | private: |
552 | | bool _internal_has_message() const; |
553 | | public: |
554 | | void clear_message(); |
555 | | const std::string& message() const; |
556 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
557 | | void set_message(ArgT0&& arg0, ArgT... args); |
558 | | std::string* mutable_message(); |
559 | | PROTOBUF_NODISCARD std::string* release_message(); |
560 | | void set_allocated_message(std::string* message); |
561 | | private: |
562 | | const std::string& _internal_message() const; |
563 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); |
564 | | std::string* _internal_mutable_message(); |
565 | | public: |
566 | | |
567 | | // optional uint64 receiving_socket_id = 3; |
568 | | bool has_receiving_socket_id() const; |
569 | | private: |
570 | | bool _internal_has_receiving_socket_id() const; |
571 | | public: |
572 | | void clear_receiving_socket_id(); |
573 | | uint64_t receiving_socket_id() const; |
574 | | void set_receiving_socket_id(uint64_t value); |
575 | | private: |
576 | | uint64_t _internal_receiving_socket_id() const; |
577 | | void _internal_set_receiving_socket_id(uint64_t value); |
578 | | public: |
579 | | |
580 | | // @@protoc_insertion_point(class_scope:test.EchoResponse) |
581 | | private: |
582 | | class _Internal; |
583 | | |
584 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
585 | | typedef void InternalArenaConstructable_; |
586 | | typedef void DestructorSkippable_; |
587 | | struct Impl_ { |
588 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
589 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
590 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > code_list_; |
591 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; |
592 | | uint64_t receiving_socket_id_; |
593 | | }; |
594 | | union { Impl_ _impl_; }; |
595 | | friend struct ::TableStruct_echo_2eproto; |
596 | | }; |
597 | | // ------------------------------------------------------------------- |
598 | | |
599 | | class ComboRequest final : |
600 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.ComboRequest) */ { |
601 | | public: |
602 | 0 | inline ComboRequest() : ComboRequest(nullptr) {} |
603 | | ~ComboRequest() override; |
604 | | explicit PROTOBUF_CONSTEXPR ComboRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
605 | | |
606 | | ComboRequest(const ComboRequest& from); |
607 | | ComboRequest(ComboRequest&& from) noexcept |
608 | 0 | : ComboRequest() { |
609 | 0 | *this = ::std::move(from); |
610 | 0 | } |
611 | | |
612 | 0 | inline ComboRequest& operator=(const ComboRequest& from) { |
613 | 0 | CopyFrom(from); |
614 | 0 | return *this; |
615 | 0 | } |
616 | 0 | inline ComboRequest& operator=(ComboRequest&& from) noexcept { |
617 | 0 | if (this == &from) return *this; |
618 | 0 | if (GetOwningArena() == from.GetOwningArena() |
619 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
620 | 0 | && GetOwningArena() != nullptr |
621 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
622 | 0 | ) { |
623 | 0 | InternalSwap(&from); |
624 | 0 | } else { |
625 | 0 | CopyFrom(from); |
626 | 0 | } |
627 | 0 | return *this; |
628 | 0 | } |
629 | | |
630 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
631 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
632 | 0 | } |
633 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
634 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
635 | 0 | } |
636 | | |
637 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
638 | 0 | return GetDescriptor(); |
639 | 0 | } |
640 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
641 | 0 | return default_instance().GetMetadata().descriptor; |
642 | 0 | } |
643 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
644 | 0 | return default_instance().GetMetadata().reflection; |
645 | 0 | } |
646 | 0 | static const ComboRequest& default_instance() { |
647 | 0 | return *internal_default_instance(); |
648 | 0 | } |
649 | 0 | static inline const ComboRequest* internal_default_instance() { |
650 | 0 | return reinterpret_cast<const ComboRequest*>( |
651 | 0 | &_ComboRequest_default_instance_); |
652 | 0 | } |
653 | | static constexpr int kIndexInFileMessages = |
654 | | 2; |
655 | | |
656 | 0 | friend void swap(ComboRequest& a, ComboRequest& b) { |
657 | 0 | a.Swap(&b); |
658 | 0 | } |
659 | 0 | inline void Swap(ComboRequest* other) { |
660 | 0 | if (other == this) return; |
661 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
662 | 0 | if (GetOwningArena() != nullptr && |
663 | 0 | GetOwningArena() == other->GetOwningArena()) { |
664 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
665 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
666 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
667 | 0 | InternalSwap(other); |
668 | 0 | } else { |
669 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
670 | 0 | } |
671 | 0 | } |
672 | 0 | void UnsafeArenaSwap(ComboRequest* other) { |
673 | 0 | if (other == this) return; |
674 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
675 | 0 | InternalSwap(other); |
676 | 0 | } |
677 | | |
678 | | // implements Message ---------------------------------------------- |
679 | | |
680 | 0 | ComboRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
681 | 0 | return CreateMaybeMessage<ComboRequest>(arena); |
682 | 0 | } |
683 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
684 | | void CopyFrom(const ComboRequest& from); |
685 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
686 | 0 | void MergeFrom( const ComboRequest& from) { |
687 | 0 | ComboRequest::MergeImpl(*this, from); |
688 | 0 | } |
689 | | private: |
690 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
691 | | public: |
692 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
693 | | bool IsInitialized() const final; |
694 | | |
695 | | size_t ByteSizeLong() const final; |
696 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
697 | | uint8_t* _InternalSerialize( |
698 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
699 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
700 | | |
701 | | private: |
702 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
703 | | void SharedDtor(); |
704 | | void SetCachedSize(int size) const final; |
705 | | void InternalSwap(ComboRequest* other); |
706 | | |
707 | | private: |
708 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
709 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
710 | 0 | return "test.ComboRequest"; |
711 | 0 | } |
712 | | protected: |
713 | | explicit ComboRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
714 | | bool is_message_owned = false); |
715 | | public: |
716 | | |
717 | | static const ClassData _class_data_; |
718 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
719 | | |
720 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
721 | | |
722 | | // nested types ---------------------------------------------------- |
723 | | |
724 | | // accessors ------------------------------------------------------- |
725 | | |
726 | | enum : int { |
727 | | kRequestsFieldNumber = 1, |
728 | | }; |
729 | | // repeated .test.EchoRequest requests = 1; |
730 | | int requests_size() const; |
731 | | private: |
732 | | int _internal_requests_size() const; |
733 | | public: |
734 | | void clear_requests(); |
735 | | ::test::EchoRequest* mutable_requests(int index); |
736 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoRequest >* |
737 | | mutable_requests(); |
738 | | private: |
739 | | const ::test::EchoRequest& _internal_requests(int index) const; |
740 | | ::test::EchoRequest* _internal_add_requests(); |
741 | | public: |
742 | | const ::test::EchoRequest& requests(int index) const; |
743 | | ::test::EchoRequest* add_requests(); |
744 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoRequest >& |
745 | | requests() const; |
746 | | |
747 | | // @@protoc_insertion_point(class_scope:test.ComboRequest) |
748 | | private: |
749 | | class _Internal; |
750 | | |
751 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
752 | | typedef void InternalArenaConstructable_; |
753 | | typedef void DestructorSkippable_; |
754 | | struct Impl_ { |
755 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoRequest > requests_; |
756 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
757 | | }; |
758 | | union { Impl_ _impl_; }; |
759 | | friend struct ::TableStruct_echo_2eproto; |
760 | | }; |
761 | | // ------------------------------------------------------------------- |
762 | | |
763 | | class BytesRequest final : |
764 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.BytesRequest) */ { |
765 | | public: |
766 | 0 | inline BytesRequest() : BytesRequest(nullptr) {} |
767 | | ~BytesRequest() override; |
768 | | explicit PROTOBUF_CONSTEXPR BytesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
769 | | |
770 | | BytesRequest(const BytesRequest& from); |
771 | | BytesRequest(BytesRequest&& from) noexcept |
772 | 0 | : BytesRequest() { |
773 | 0 | *this = ::std::move(from); |
774 | 0 | } |
775 | | |
776 | 0 | inline BytesRequest& operator=(const BytesRequest& from) { |
777 | 0 | CopyFrom(from); |
778 | 0 | return *this; |
779 | 0 | } |
780 | 0 | inline BytesRequest& operator=(BytesRequest&& from) noexcept { |
781 | 0 | if (this == &from) return *this; |
782 | 0 | if (GetOwningArena() == from.GetOwningArena() |
783 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
784 | 0 | && GetOwningArena() != nullptr |
785 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
786 | 0 | ) { |
787 | 0 | InternalSwap(&from); |
788 | 0 | } else { |
789 | 0 | CopyFrom(from); |
790 | 0 | } |
791 | 0 | return *this; |
792 | 0 | } |
793 | | |
794 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
795 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
796 | 0 | } |
797 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
798 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
799 | 0 | } |
800 | | |
801 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
802 | 0 | return GetDescriptor(); |
803 | 0 | } |
804 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
805 | 0 | return default_instance().GetMetadata().descriptor; |
806 | 0 | } |
807 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
808 | 0 | return default_instance().GetMetadata().reflection; |
809 | 0 | } |
810 | 0 | static const BytesRequest& default_instance() { |
811 | 0 | return *internal_default_instance(); |
812 | 0 | } |
813 | 0 | static inline const BytesRequest* internal_default_instance() { |
814 | 0 | return reinterpret_cast<const BytesRequest*>( |
815 | 0 | &_BytesRequest_default_instance_); |
816 | 0 | } |
817 | | static constexpr int kIndexInFileMessages = |
818 | | 3; |
819 | | |
820 | 0 | friend void swap(BytesRequest& a, BytesRequest& b) { |
821 | 0 | a.Swap(&b); |
822 | 0 | } |
823 | 0 | inline void Swap(BytesRequest* other) { |
824 | 0 | if (other == this) return; |
825 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
826 | 0 | if (GetOwningArena() != nullptr && |
827 | 0 | GetOwningArena() == other->GetOwningArena()) { |
828 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
829 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
830 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
831 | 0 | InternalSwap(other); |
832 | 0 | } else { |
833 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
834 | 0 | } |
835 | 0 | } |
836 | 0 | void UnsafeArenaSwap(BytesRequest* other) { |
837 | 0 | if (other == this) return; |
838 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
839 | 0 | InternalSwap(other); |
840 | 0 | } |
841 | | |
842 | | // implements Message ---------------------------------------------- |
843 | | |
844 | 0 | BytesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
845 | 0 | return CreateMaybeMessage<BytesRequest>(arena); |
846 | 0 | } |
847 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
848 | | void CopyFrom(const BytesRequest& from); |
849 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
850 | 0 | void MergeFrom( const BytesRequest& from) { |
851 | 0 | BytesRequest::MergeImpl(*this, from); |
852 | 0 | } |
853 | | private: |
854 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
855 | | public: |
856 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
857 | | bool IsInitialized() const final; |
858 | | |
859 | | size_t ByteSizeLong() const final; |
860 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
861 | | uint8_t* _InternalSerialize( |
862 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
863 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
864 | | |
865 | | private: |
866 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
867 | | void SharedDtor(); |
868 | | void SetCachedSize(int size) const final; |
869 | | void InternalSwap(BytesRequest* other); |
870 | | |
871 | | private: |
872 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
873 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
874 | 0 | return "test.BytesRequest"; |
875 | 0 | } |
876 | | protected: |
877 | | explicit BytesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
878 | | bool is_message_owned = false); |
879 | | public: |
880 | | |
881 | | static const ClassData _class_data_; |
882 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
883 | | |
884 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
885 | | |
886 | | // nested types ---------------------------------------------------- |
887 | | |
888 | | // accessors ------------------------------------------------------- |
889 | | |
890 | | enum : int { |
891 | | kDatabytesFieldNumber = 1, |
892 | | }; |
893 | | // required bytes databytes = 1; |
894 | | bool has_databytes() const; |
895 | | private: |
896 | | bool _internal_has_databytes() const; |
897 | | public: |
898 | | void clear_databytes(); |
899 | | const std::string& databytes() const; |
900 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
901 | | void set_databytes(ArgT0&& arg0, ArgT... args); |
902 | | std::string* mutable_databytes(); |
903 | | PROTOBUF_NODISCARD std::string* release_databytes(); |
904 | | void set_allocated_databytes(std::string* databytes); |
905 | | private: |
906 | | const std::string& _internal_databytes() const; |
907 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_databytes(const std::string& value); |
908 | | std::string* _internal_mutable_databytes(); |
909 | | public: |
910 | | |
911 | | // @@protoc_insertion_point(class_scope:test.BytesRequest) |
912 | | private: |
913 | | class _Internal; |
914 | | |
915 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
916 | | typedef void InternalArenaConstructable_; |
917 | | typedef void DestructorSkippable_; |
918 | | struct Impl_ { |
919 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
920 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
921 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr databytes_; |
922 | | }; |
923 | | union { Impl_ _impl_; }; |
924 | | friend struct ::TableStruct_echo_2eproto; |
925 | | }; |
926 | | // ------------------------------------------------------------------- |
927 | | |
928 | | class BytesResponse final : |
929 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.BytesResponse) */ { |
930 | | public: |
931 | 0 | inline BytesResponse() : BytesResponse(nullptr) {} |
932 | | ~BytesResponse() override; |
933 | | explicit PROTOBUF_CONSTEXPR BytesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
934 | | |
935 | | BytesResponse(const BytesResponse& from); |
936 | | BytesResponse(BytesResponse&& from) noexcept |
937 | 0 | : BytesResponse() { |
938 | 0 | *this = ::std::move(from); |
939 | 0 | } |
940 | | |
941 | 0 | inline BytesResponse& operator=(const BytesResponse& from) { |
942 | 0 | CopyFrom(from); |
943 | 0 | return *this; |
944 | 0 | } |
945 | 0 | inline BytesResponse& operator=(BytesResponse&& from) noexcept { |
946 | 0 | if (this == &from) return *this; |
947 | 0 | if (GetOwningArena() == from.GetOwningArena() |
948 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
949 | 0 | && GetOwningArena() != nullptr |
950 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
951 | 0 | ) { |
952 | 0 | InternalSwap(&from); |
953 | 0 | } else { |
954 | 0 | CopyFrom(from); |
955 | 0 | } |
956 | 0 | return *this; |
957 | 0 | } |
958 | | |
959 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
960 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
961 | 0 | } |
962 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
963 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
964 | 0 | } |
965 | | |
966 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
967 | 0 | return GetDescriptor(); |
968 | 0 | } |
969 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
970 | 0 | return default_instance().GetMetadata().descriptor; |
971 | 0 | } |
972 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
973 | 0 | return default_instance().GetMetadata().reflection; |
974 | 0 | } |
975 | 0 | static const BytesResponse& default_instance() { |
976 | 0 | return *internal_default_instance(); |
977 | 0 | } |
978 | 0 | static inline const BytesResponse* internal_default_instance() { |
979 | 0 | return reinterpret_cast<const BytesResponse*>( |
980 | 0 | &_BytesResponse_default_instance_); |
981 | 0 | } |
982 | | static constexpr int kIndexInFileMessages = |
983 | | 4; |
984 | | |
985 | 0 | friend void swap(BytesResponse& a, BytesResponse& b) { |
986 | 0 | a.Swap(&b); |
987 | 0 | } |
988 | 0 | inline void Swap(BytesResponse* other) { |
989 | 0 | if (other == this) return; |
990 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
991 | 0 | if (GetOwningArena() != nullptr && |
992 | 0 | GetOwningArena() == other->GetOwningArena()) { |
993 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
994 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
995 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
996 | 0 | InternalSwap(other); |
997 | 0 | } else { |
998 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
999 | 0 | } |
1000 | 0 | } |
1001 | 0 | void UnsafeArenaSwap(BytesResponse* other) { |
1002 | 0 | if (other == this) return; |
1003 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1004 | 0 | InternalSwap(other); |
1005 | 0 | } |
1006 | | |
1007 | | // implements Message ---------------------------------------------- |
1008 | | |
1009 | 0 | BytesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1010 | 0 | return CreateMaybeMessage<BytesResponse>(arena); |
1011 | 0 | } |
1012 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1013 | | void CopyFrom(const BytesResponse& from); |
1014 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1015 | 0 | void MergeFrom( const BytesResponse& from) { |
1016 | 0 | BytesResponse::MergeImpl(*this, from); |
1017 | 0 | } |
1018 | | private: |
1019 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1020 | | public: |
1021 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1022 | | bool IsInitialized() const final; |
1023 | | |
1024 | | size_t ByteSizeLong() const final; |
1025 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1026 | | uint8_t* _InternalSerialize( |
1027 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1028 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1029 | | |
1030 | | private: |
1031 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1032 | | void SharedDtor(); |
1033 | | void SetCachedSize(int size) const final; |
1034 | | void InternalSwap(BytesResponse* other); |
1035 | | |
1036 | | private: |
1037 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1038 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1039 | 0 | return "test.BytesResponse"; |
1040 | 0 | } |
1041 | | protected: |
1042 | | explicit BytesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1043 | | bool is_message_owned = false); |
1044 | | public: |
1045 | | |
1046 | | static const ClassData _class_data_; |
1047 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1048 | | |
1049 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1050 | | |
1051 | | // nested types ---------------------------------------------------- |
1052 | | |
1053 | | // accessors ------------------------------------------------------- |
1054 | | |
1055 | | enum : int { |
1056 | | kDatabytesFieldNumber = 1, |
1057 | | }; |
1058 | | // required bytes databytes = 1; |
1059 | | bool has_databytes() const; |
1060 | | private: |
1061 | | bool _internal_has_databytes() const; |
1062 | | public: |
1063 | | void clear_databytes(); |
1064 | | const std::string& databytes() const; |
1065 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1066 | | void set_databytes(ArgT0&& arg0, ArgT... args); |
1067 | | std::string* mutable_databytes(); |
1068 | | PROTOBUF_NODISCARD std::string* release_databytes(); |
1069 | | void set_allocated_databytes(std::string* databytes); |
1070 | | private: |
1071 | | const std::string& _internal_databytes() const; |
1072 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_databytes(const std::string& value); |
1073 | | std::string* _internal_mutable_databytes(); |
1074 | | public: |
1075 | | |
1076 | | // @@protoc_insertion_point(class_scope:test.BytesResponse) |
1077 | | private: |
1078 | | class _Internal; |
1079 | | |
1080 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1081 | | typedef void InternalArenaConstructable_; |
1082 | | typedef void DestructorSkippable_; |
1083 | | struct Impl_ { |
1084 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1085 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1086 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr databytes_; |
1087 | | }; |
1088 | | union { Impl_ _impl_; }; |
1089 | | friend struct ::TableStruct_echo_2eproto; |
1090 | | }; |
1091 | | // ------------------------------------------------------------------- |
1092 | | |
1093 | | class ComboResponse final : |
1094 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.ComboResponse) */ { |
1095 | | public: |
1096 | 0 | inline ComboResponse() : ComboResponse(nullptr) {} |
1097 | | ~ComboResponse() override; |
1098 | | explicit PROTOBUF_CONSTEXPR ComboResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1099 | | |
1100 | | ComboResponse(const ComboResponse& from); |
1101 | | ComboResponse(ComboResponse&& from) noexcept |
1102 | 0 | : ComboResponse() { |
1103 | 0 | *this = ::std::move(from); |
1104 | 0 | } |
1105 | | |
1106 | 0 | inline ComboResponse& operator=(const ComboResponse& from) { |
1107 | 0 | CopyFrom(from); |
1108 | 0 | return *this; |
1109 | 0 | } |
1110 | 0 | inline ComboResponse& operator=(ComboResponse&& from) noexcept { |
1111 | 0 | if (this == &from) return *this; |
1112 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1113 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1114 | 0 | && GetOwningArena() != nullptr |
1115 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1116 | 0 | ) { |
1117 | 0 | InternalSwap(&from); |
1118 | 0 | } else { |
1119 | 0 | CopyFrom(from); |
1120 | 0 | } |
1121 | 0 | return *this; |
1122 | 0 | } |
1123 | | |
1124 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1125 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1126 | 0 | } |
1127 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1128 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1129 | 0 | } |
1130 | | |
1131 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1132 | 0 | return GetDescriptor(); |
1133 | 0 | } |
1134 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1135 | 0 | return default_instance().GetMetadata().descriptor; |
1136 | 0 | } |
1137 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1138 | 0 | return default_instance().GetMetadata().reflection; |
1139 | 0 | } |
1140 | 0 | static const ComboResponse& default_instance() { |
1141 | 0 | return *internal_default_instance(); |
1142 | 0 | } |
1143 | 0 | static inline const ComboResponse* internal_default_instance() { |
1144 | 0 | return reinterpret_cast<const ComboResponse*>( |
1145 | 0 | &_ComboResponse_default_instance_); |
1146 | 0 | } |
1147 | | static constexpr int kIndexInFileMessages = |
1148 | | 5; |
1149 | | |
1150 | 0 | friend void swap(ComboResponse& a, ComboResponse& b) { |
1151 | 0 | a.Swap(&b); |
1152 | 0 | } |
1153 | 0 | inline void Swap(ComboResponse* other) { |
1154 | 0 | if (other == this) return; |
1155 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1156 | 0 | if (GetOwningArena() != nullptr && |
1157 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1158 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1159 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1160 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1161 | 0 | InternalSwap(other); |
1162 | 0 | } else { |
1163 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1164 | 0 | } |
1165 | 0 | } |
1166 | 0 | void UnsafeArenaSwap(ComboResponse* other) { |
1167 | 0 | if (other == this) return; |
1168 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1169 | 0 | InternalSwap(other); |
1170 | 0 | } |
1171 | | |
1172 | | // implements Message ---------------------------------------------- |
1173 | | |
1174 | 0 | ComboResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1175 | 0 | return CreateMaybeMessage<ComboResponse>(arena); |
1176 | 0 | } |
1177 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1178 | | void CopyFrom(const ComboResponse& from); |
1179 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1180 | 0 | void MergeFrom( const ComboResponse& from) { |
1181 | 0 | ComboResponse::MergeImpl(*this, from); |
1182 | 0 | } |
1183 | | private: |
1184 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1185 | | public: |
1186 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1187 | | bool IsInitialized() const final; |
1188 | | |
1189 | | size_t ByteSizeLong() const final; |
1190 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1191 | | uint8_t* _InternalSerialize( |
1192 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1193 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1194 | | |
1195 | | private: |
1196 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1197 | | void SharedDtor(); |
1198 | | void SetCachedSize(int size) const final; |
1199 | | void InternalSwap(ComboResponse* other); |
1200 | | |
1201 | | private: |
1202 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1203 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1204 | 0 | return "test.ComboResponse"; |
1205 | 0 | } |
1206 | | protected: |
1207 | | explicit ComboResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1208 | | bool is_message_owned = false); |
1209 | | public: |
1210 | | |
1211 | | static const ClassData _class_data_; |
1212 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1213 | | |
1214 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1215 | | |
1216 | | // nested types ---------------------------------------------------- |
1217 | | |
1218 | | // accessors ------------------------------------------------------- |
1219 | | |
1220 | | enum : int { |
1221 | | kResponsesFieldNumber = 1, |
1222 | | }; |
1223 | | // repeated .test.EchoResponse responses = 1; |
1224 | | int responses_size() const; |
1225 | | private: |
1226 | | int _internal_responses_size() const; |
1227 | | public: |
1228 | | void clear_responses(); |
1229 | | ::test::EchoResponse* mutable_responses(int index); |
1230 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoResponse >* |
1231 | | mutable_responses(); |
1232 | | private: |
1233 | | const ::test::EchoResponse& _internal_responses(int index) const; |
1234 | | ::test::EchoResponse* _internal_add_responses(); |
1235 | | public: |
1236 | | const ::test::EchoResponse& responses(int index) const; |
1237 | | ::test::EchoResponse* add_responses(); |
1238 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoResponse >& |
1239 | | responses() const; |
1240 | | |
1241 | | // @@protoc_insertion_point(class_scope:test.ComboResponse) |
1242 | | private: |
1243 | | class _Internal; |
1244 | | |
1245 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1246 | | typedef void InternalArenaConstructable_; |
1247 | | typedef void DestructorSkippable_; |
1248 | | struct Impl_ { |
1249 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoResponse > responses_; |
1250 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1251 | | }; |
1252 | | union { Impl_ _impl_; }; |
1253 | | friend struct ::TableStruct_echo_2eproto; |
1254 | | }; |
1255 | | // ------------------------------------------------------------------- |
1256 | | |
1257 | | class HttpRequest final : |
1258 | | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:test.HttpRequest) */ { |
1259 | | public: |
1260 | 0 | inline HttpRequest() : HttpRequest(nullptr) {} |
1261 | | explicit PROTOBUF_CONSTEXPR HttpRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1262 | | |
1263 | | HttpRequest(const HttpRequest& from); |
1264 | | HttpRequest(HttpRequest&& from) noexcept |
1265 | 0 | : HttpRequest() { |
1266 | 0 | *this = ::std::move(from); |
1267 | 0 | } |
1268 | | |
1269 | 0 | inline HttpRequest& operator=(const HttpRequest& from) { |
1270 | 0 | CopyFrom(from); |
1271 | 0 | return *this; |
1272 | 0 | } |
1273 | 0 | inline HttpRequest& operator=(HttpRequest&& from) noexcept { |
1274 | 0 | if (this == &from) return *this; |
1275 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1276 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1277 | 0 | && GetOwningArena() != nullptr |
1278 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1279 | 0 | ) { |
1280 | 0 | InternalSwap(&from); |
1281 | 0 | } else { |
1282 | 0 | CopyFrom(from); |
1283 | 0 | } |
1284 | 0 | return *this; |
1285 | 0 | } |
1286 | | |
1287 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1288 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1289 | 0 | } |
1290 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1291 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1292 | 0 | } |
1293 | | |
1294 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1295 | 0 | return GetDescriptor(); |
1296 | 0 | } |
1297 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1298 | 0 | return default_instance().GetMetadata().descriptor; |
1299 | 0 | } |
1300 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1301 | 0 | return default_instance().GetMetadata().reflection; |
1302 | 0 | } |
1303 | 0 | static const HttpRequest& default_instance() { |
1304 | 0 | return *internal_default_instance(); |
1305 | 0 | } |
1306 | 0 | static inline const HttpRequest* internal_default_instance() { |
1307 | 0 | return reinterpret_cast<const HttpRequest*>( |
1308 | 0 | &_HttpRequest_default_instance_); |
1309 | 0 | } |
1310 | | static constexpr int kIndexInFileMessages = |
1311 | | 6; |
1312 | | |
1313 | 0 | friend void swap(HttpRequest& a, HttpRequest& b) { |
1314 | 0 | a.Swap(&b); |
1315 | 0 | } |
1316 | 0 | inline void Swap(HttpRequest* other) { |
1317 | 0 | if (other == this) return; |
1318 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1319 | 0 | if (GetOwningArena() != nullptr && |
1320 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1321 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1322 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1323 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1324 | 0 | InternalSwap(other); |
1325 | 0 | } else { |
1326 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1327 | 0 | } |
1328 | 0 | } |
1329 | 0 | void UnsafeArenaSwap(HttpRequest* other) { |
1330 | 0 | if (other == this) return; |
1331 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1332 | 0 | InternalSwap(other); |
1333 | 0 | } |
1334 | | |
1335 | | // implements Message ---------------------------------------------- |
1336 | | |
1337 | 0 | HttpRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1338 | 0 | return CreateMaybeMessage<HttpRequest>(arena); |
1339 | 0 | } |
1340 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
1341 | 0 | inline void CopyFrom(const HttpRequest& from) { |
1342 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); |
1343 | 0 | } |
1344 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
1345 | 0 | void MergeFrom(const HttpRequest& from) { |
1346 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); |
1347 | 0 | } |
1348 | | public: |
1349 | | |
1350 | | private: |
1351 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1352 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1353 | 0 | return "test.HttpRequest"; |
1354 | 0 | } |
1355 | | protected: |
1356 | | explicit HttpRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1357 | | bool is_message_owned = false); |
1358 | | public: |
1359 | | |
1360 | | static const ClassData _class_data_; |
1361 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1362 | | |
1363 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1364 | | |
1365 | | // nested types ---------------------------------------------------- |
1366 | | |
1367 | | // accessors ------------------------------------------------------- |
1368 | | |
1369 | | // @@protoc_insertion_point(class_scope:test.HttpRequest) |
1370 | | private: |
1371 | | class _Internal; |
1372 | | |
1373 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1374 | | typedef void InternalArenaConstructable_; |
1375 | | typedef void DestructorSkippable_; |
1376 | | struct Impl_ { |
1377 | | }; |
1378 | | friend struct ::TableStruct_echo_2eproto; |
1379 | | }; |
1380 | | // ------------------------------------------------------------------- |
1381 | | |
1382 | | class HttpResponse final : |
1383 | | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:test.HttpResponse) */ { |
1384 | | public: |
1385 | 0 | inline HttpResponse() : HttpResponse(nullptr) {} |
1386 | | explicit PROTOBUF_CONSTEXPR HttpResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1387 | | |
1388 | | HttpResponse(const HttpResponse& from); |
1389 | | HttpResponse(HttpResponse&& from) noexcept |
1390 | 0 | : HttpResponse() { |
1391 | 0 | *this = ::std::move(from); |
1392 | 0 | } |
1393 | | |
1394 | 0 | inline HttpResponse& operator=(const HttpResponse& from) { |
1395 | 0 | CopyFrom(from); |
1396 | 0 | return *this; |
1397 | 0 | } |
1398 | 0 | inline HttpResponse& operator=(HttpResponse&& from) noexcept { |
1399 | 0 | if (this == &from) return *this; |
1400 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1401 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1402 | 0 | && GetOwningArena() != nullptr |
1403 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1404 | 0 | ) { |
1405 | 0 | InternalSwap(&from); |
1406 | 0 | } else { |
1407 | 0 | CopyFrom(from); |
1408 | 0 | } |
1409 | 0 | return *this; |
1410 | 0 | } |
1411 | | |
1412 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1413 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1414 | 0 | } |
1415 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1416 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1417 | 0 | } |
1418 | | |
1419 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1420 | 0 | return GetDescriptor(); |
1421 | 0 | } |
1422 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1423 | 0 | return default_instance().GetMetadata().descriptor; |
1424 | 0 | } |
1425 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1426 | 0 | return default_instance().GetMetadata().reflection; |
1427 | 0 | } |
1428 | 0 | static const HttpResponse& default_instance() { |
1429 | 0 | return *internal_default_instance(); |
1430 | 0 | } |
1431 | 0 | static inline const HttpResponse* internal_default_instance() { |
1432 | 0 | return reinterpret_cast<const HttpResponse*>( |
1433 | 0 | &_HttpResponse_default_instance_); |
1434 | 0 | } |
1435 | | static constexpr int kIndexInFileMessages = |
1436 | | 7; |
1437 | | |
1438 | 0 | friend void swap(HttpResponse& a, HttpResponse& b) { |
1439 | 0 | a.Swap(&b); |
1440 | 0 | } |
1441 | 0 | inline void Swap(HttpResponse* other) { |
1442 | 0 | if (other == this) return; |
1443 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1444 | 0 | if (GetOwningArena() != nullptr && |
1445 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1446 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1447 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1448 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1449 | 0 | InternalSwap(other); |
1450 | 0 | } else { |
1451 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1452 | 0 | } |
1453 | 0 | } |
1454 | 0 | void UnsafeArenaSwap(HttpResponse* other) { |
1455 | 0 | if (other == this) return; |
1456 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1457 | 0 | InternalSwap(other); |
1458 | 0 | } |
1459 | | |
1460 | | // implements Message ---------------------------------------------- |
1461 | | |
1462 | 0 | HttpResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1463 | 0 | return CreateMaybeMessage<HttpResponse>(arena); |
1464 | 0 | } |
1465 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
1466 | 0 | inline void CopyFrom(const HttpResponse& from) { |
1467 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); |
1468 | 0 | } |
1469 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
1470 | 0 | void MergeFrom(const HttpResponse& from) { |
1471 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); |
1472 | 0 | } |
1473 | | public: |
1474 | | |
1475 | | private: |
1476 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1477 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1478 | 0 | return "test.HttpResponse"; |
1479 | 0 | } |
1480 | | protected: |
1481 | | explicit HttpResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1482 | | bool is_message_owned = false); |
1483 | | public: |
1484 | | |
1485 | | static const ClassData _class_data_; |
1486 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1487 | | |
1488 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1489 | | |
1490 | | // nested types ---------------------------------------------------- |
1491 | | |
1492 | | // accessors ------------------------------------------------------- |
1493 | | |
1494 | | // @@protoc_insertion_point(class_scope:test.HttpResponse) |
1495 | | private: |
1496 | | class _Internal; |
1497 | | |
1498 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1499 | | typedef void InternalArenaConstructable_; |
1500 | | typedef void DestructorSkippable_; |
1501 | | struct Impl_ { |
1502 | | }; |
1503 | | friend struct ::TableStruct_echo_2eproto; |
1504 | | }; |
1505 | | // ------------------------------------------------------------------- |
1506 | | |
1507 | | class Message1 final : |
1508 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.Message1) */ { |
1509 | | public: |
1510 | 0 | inline Message1() : Message1(nullptr) {} |
1511 | | ~Message1() override; |
1512 | | explicit PROTOBUF_CONSTEXPR Message1(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1513 | | |
1514 | | Message1(const Message1& from); |
1515 | | Message1(Message1&& from) noexcept |
1516 | 0 | : Message1() { |
1517 | 0 | *this = ::std::move(from); |
1518 | 0 | } |
1519 | | |
1520 | 0 | inline Message1& operator=(const Message1& from) { |
1521 | 0 | CopyFrom(from); |
1522 | 0 | return *this; |
1523 | 0 | } |
1524 | 0 | inline Message1& operator=(Message1&& from) noexcept { |
1525 | 0 | if (this == &from) return *this; |
1526 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1527 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1528 | 0 | && GetOwningArena() != nullptr |
1529 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1530 | 0 | ) { |
1531 | 0 | InternalSwap(&from); |
1532 | 0 | } else { |
1533 | 0 | CopyFrom(from); |
1534 | 0 | } |
1535 | 0 | return *this; |
1536 | 0 | } |
1537 | | |
1538 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1539 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1540 | 0 | } |
1541 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1542 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1543 | 0 | } |
1544 | | |
1545 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1546 | 0 | return GetDescriptor(); |
1547 | 0 | } |
1548 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1549 | 0 | return default_instance().GetMetadata().descriptor; |
1550 | 0 | } |
1551 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1552 | 0 | return default_instance().GetMetadata().reflection; |
1553 | 0 | } |
1554 | 0 | static const Message1& default_instance() { |
1555 | 0 | return *internal_default_instance(); |
1556 | 0 | } |
1557 | 0 | static inline const Message1* internal_default_instance() { |
1558 | 0 | return reinterpret_cast<const Message1*>( |
1559 | 0 | &_Message1_default_instance_); |
1560 | 0 | } |
1561 | | static constexpr int kIndexInFileMessages = |
1562 | | 8; |
1563 | | |
1564 | 0 | friend void swap(Message1& a, Message1& b) { |
1565 | 0 | a.Swap(&b); |
1566 | 0 | } |
1567 | 0 | inline void Swap(Message1* other) { |
1568 | 0 | if (other == this) return; |
1569 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1570 | 0 | if (GetOwningArena() != nullptr && |
1571 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1572 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1573 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1574 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1575 | 0 | InternalSwap(other); |
1576 | 0 | } else { |
1577 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1578 | 0 | } |
1579 | 0 | } |
1580 | 0 | void UnsafeArenaSwap(Message1* other) { |
1581 | 0 | if (other == this) return; |
1582 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1583 | 0 | InternalSwap(other); |
1584 | 0 | } |
1585 | | |
1586 | | // implements Message ---------------------------------------------- |
1587 | | |
1588 | 0 | Message1* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1589 | 0 | return CreateMaybeMessage<Message1>(arena); |
1590 | 0 | } |
1591 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1592 | | void CopyFrom(const Message1& from); |
1593 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1594 | 0 | void MergeFrom( const Message1& from) { |
1595 | 0 | Message1::MergeImpl(*this, from); |
1596 | 0 | } |
1597 | | private: |
1598 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1599 | | public: |
1600 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1601 | | bool IsInitialized() const final; |
1602 | | |
1603 | | size_t ByteSizeLong() const final; |
1604 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1605 | | uint8_t* _InternalSerialize( |
1606 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1607 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1608 | | |
1609 | | private: |
1610 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1611 | | void SharedDtor(); |
1612 | | void SetCachedSize(int size) const final; |
1613 | | void InternalSwap(Message1* other); |
1614 | | |
1615 | | private: |
1616 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1617 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1618 | 0 | return "test.Message1"; |
1619 | 0 | } |
1620 | | protected: |
1621 | | explicit Message1(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1622 | | bool is_message_owned = false); |
1623 | | public: |
1624 | | |
1625 | | static const ClassData _class_data_; |
1626 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1627 | | |
1628 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1629 | | |
1630 | | // nested types ---------------------------------------------------- |
1631 | | |
1632 | | // accessors ------------------------------------------------------- |
1633 | | |
1634 | | enum : int { |
1635 | | kStatFieldNumber = 1, |
1636 | | }; |
1637 | | // required .test.State0 stat = 1; |
1638 | | bool has_stat() const; |
1639 | | private: |
1640 | | bool _internal_has_stat() const; |
1641 | | public: |
1642 | | void clear_stat(); |
1643 | | ::test::State0 stat() const; |
1644 | | void set_stat(::test::State0 value); |
1645 | | private: |
1646 | | ::test::State0 _internal_stat() const; |
1647 | | void _internal_set_stat(::test::State0 value); |
1648 | | public: |
1649 | | |
1650 | | // @@protoc_insertion_point(class_scope:test.Message1) |
1651 | | private: |
1652 | | class _Internal; |
1653 | | |
1654 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1655 | | typedef void InternalArenaConstructable_; |
1656 | | typedef void DestructorSkippable_; |
1657 | | struct Impl_ { |
1658 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1659 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1660 | | int stat_; |
1661 | | }; |
1662 | | union { Impl_ _impl_; }; |
1663 | | friend struct ::TableStruct_echo_2eproto; |
1664 | | }; |
1665 | | // ------------------------------------------------------------------- |
1666 | | |
1667 | | class Message2 final : |
1668 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.Message2) */ { |
1669 | | public: |
1670 | 0 | inline Message2() : Message2(nullptr) {} |
1671 | | ~Message2() override; |
1672 | | explicit PROTOBUF_CONSTEXPR Message2(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1673 | | |
1674 | | Message2(const Message2& from); |
1675 | | Message2(Message2&& from) noexcept |
1676 | 0 | : Message2() { |
1677 | 0 | *this = ::std::move(from); |
1678 | 0 | } |
1679 | | |
1680 | 0 | inline Message2& operator=(const Message2& from) { |
1681 | 0 | CopyFrom(from); |
1682 | 0 | return *this; |
1683 | 0 | } |
1684 | 0 | inline Message2& operator=(Message2&& from) noexcept { |
1685 | 0 | if (this == &from) return *this; |
1686 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1687 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1688 | 0 | && GetOwningArena() != nullptr |
1689 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1690 | 0 | ) { |
1691 | 0 | InternalSwap(&from); |
1692 | 0 | } else { |
1693 | 0 | CopyFrom(from); |
1694 | 0 | } |
1695 | 0 | return *this; |
1696 | 0 | } |
1697 | | |
1698 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1699 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1700 | 0 | } |
1701 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1702 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1703 | 0 | } |
1704 | | |
1705 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1706 | 0 | return GetDescriptor(); |
1707 | 0 | } |
1708 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1709 | 0 | return default_instance().GetMetadata().descriptor; |
1710 | 0 | } |
1711 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1712 | 0 | return default_instance().GetMetadata().reflection; |
1713 | 0 | } |
1714 | 0 | static const Message2& default_instance() { |
1715 | 0 | return *internal_default_instance(); |
1716 | 0 | } |
1717 | 0 | static inline const Message2* internal_default_instance() { |
1718 | 0 | return reinterpret_cast<const Message2*>( |
1719 | 0 | &_Message2_default_instance_); |
1720 | 0 | } |
1721 | | static constexpr int kIndexInFileMessages = |
1722 | | 9; |
1723 | | |
1724 | 0 | friend void swap(Message2& a, Message2& b) { |
1725 | 0 | a.Swap(&b); |
1726 | 0 | } |
1727 | 0 | inline void Swap(Message2* other) { |
1728 | 0 | if (other == this) return; |
1729 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1730 | 0 | if (GetOwningArena() != nullptr && |
1731 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1732 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1733 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1734 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1735 | 0 | InternalSwap(other); |
1736 | 0 | } else { |
1737 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1738 | 0 | } |
1739 | 0 | } |
1740 | 0 | void UnsafeArenaSwap(Message2* other) { |
1741 | 0 | if (other == this) return; |
1742 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1743 | 0 | InternalSwap(other); |
1744 | 0 | } |
1745 | | |
1746 | | // implements Message ---------------------------------------------- |
1747 | | |
1748 | 0 | Message2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1749 | 0 | return CreateMaybeMessage<Message2>(arena); |
1750 | 0 | } |
1751 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1752 | | void CopyFrom(const Message2& from); |
1753 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1754 | 0 | void MergeFrom( const Message2& from) { |
1755 | 0 | Message2::MergeImpl(*this, from); |
1756 | 0 | } |
1757 | | private: |
1758 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1759 | | public: |
1760 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1761 | | bool IsInitialized() const final; |
1762 | | |
1763 | | size_t ByteSizeLong() const final; |
1764 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1765 | | uint8_t* _InternalSerialize( |
1766 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1767 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1768 | | |
1769 | | private: |
1770 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1771 | | void SharedDtor(); |
1772 | | void SetCachedSize(int size) const final; |
1773 | | void InternalSwap(Message2* other); |
1774 | | |
1775 | | private: |
1776 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1777 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1778 | 0 | return "test.Message2"; |
1779 | 0 | } |
1780 | | protected: |
1781 | | explicit Message2(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1782 | | bool is_message_owned = false); |
1783 | | public: |
1784 | | |
1785 | | static const ClassData _class_data_; |
1786 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1787 | | |
1788 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1789 | | |
1790 | | // nested types ---------------------------------------------------- |
1791 | | |
1792 | | // accessors ------------------------------------------------------- |
1793 | | |
1794 | | enum : int { |
1795 | | kStatFieldNumber = 1, |
1796 | | }; |
1797 | | // required .test.State1 stat = 1; |
1798 | | bool has_stat() const; |
1799 | | private: |
1800 | | bool _internal_has_stat() const; |
1801 | | public: |
1802 | | void clear_stat(); |
1803 | | ::test::State1 stat() const; |
1804 | | void set_stat(::test::State1 value); |
1805 | | private: |
1806 | | ::test::State1 _internal_stat() const; |
1807 | | void _internal_set_stat(::test::State1 value); |
1808 | | public: |
1809 | | |
1810 | | // @@protoc_insertion_point(class_scope:test.Message2) |
1811 | | private: |
1812 | | class _Internal; |
1813 | | |
1814 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1815 | | typedef void InternalArenaConstructable_; |
1816 | | typedef void DestructorSkippable_; |
1817 | | struct Impl_ { |
1818 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1819 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1820 | | int stat_; |
1821 | | }; |
1822 | | union { Impl_ _impl_; }; |
1823 | | friend struct ::TableStruct_echo_2eproto; |
1824 | | }; |
1825 | | // ------------------------------------------------------------------- |
1826 | | |
1827 | | class RecursiveMessage final : |
1828 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:test.RecursiveMessage) */ { |
1829 | | public: |
1830 | 0 | inline RecursiveMessage() : RecursiveMessage(nullptr) {} |
1831 | | ~RecursiveMessage() override; |
1832 | | explicit PROTOBUF_CONSTEXPR RecursiveMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1833 | | |
1834 | | RecursiveMessage(const RecursiveMessage& from); |
1835 | | RecursiveMessage(RecursiveMessage&& from) noexcept |
1836 | 0 | : RecursiveMessage() { |
1837 | 0 | *this = ::std::move(from); |
1838 | 0 | } |
1839 | | |
1840 | 0 | inline RecursiveMessage& operator=(const RecursiveMessage& from) { |
1841 | 0 | CopyFrom(from); |
1842 | 0 | return *this; |
1843 | 0 | } |
1844 | 0 | inline RecursiveMessage& operator=(RecursiveMessage&& from) noexcept { |
1845 | 0 | if (this == &from) return *this; |
1846 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1847 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1848 | 0 | && GetOwningArena() != nullptr |
1849 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1850 | 0 | ) { |
1851 | 0 | InternalSwap(&from); |
1852 | 0 | } else { |
1853 | 0 | CopyFrom(from); |
1854 | 0 | } |
1855 | 0 | return *this; |
1856 | 0 | } |
1857 | | |
1858 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1859 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1860 | 0 | } |
1861 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1862 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1863 | 0 | } |
1864 | | |
1865 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1866 | 0 | return GetDescriptor(); |
1867 | 0 | } |
1868 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1869 | 0 | return default_instance().GetMetadata().descriptor; |
1870 | 0 | } |
1871 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1872 | 0 | return default_instance().GetMetadata().reflection; |
1873 | 0 | } |
1874 | 0 | static const RecursiveMessage& default_instance() { |
1875 | 0 | return *internal_default_instance(); |
1876 | 0 | } |
1877 | 0 | static inline const RecursiveMessage* internal_default_instance() { |
1878 | 0 | return reinterpret_cast<const RecursiveMessage*>( |
1879 | 0 | &_RecursiveMessage_default_instance_); |
1880 | 0 | } |
1881 | | static constexpr int kIndexInFileMessages = |
1882 | | 10; |
1883 | | |
1884 | 0 | friend void swap(RecursiveMessage& a, RecursiveMessage& b) { |
1885 | 0 | a.Swap(&b); |
1886 | 0 | } |
1887 | 0 | inline void Swap(RecursiveMessage* other) { |
1888 | 0 | if (other == this) return; |
1889 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1890 | 0 | if (GetOwningArena() != nullptr && |
1891 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1892 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1893 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1894 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1895 | 0 | InternalSwap(other); |
1896 | 0 | } else { |
1897 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1898 | 0 | } |
1899 | 0 | } |
1900 | 0 | void UnsafeArenaSwap(RecursiveMessage* other) { |
1901 | 0 | if (other == this) return; |
1902 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1903 | 0 | InternalSwap(other); |
1904 | 0 | } |
1905 | | |
1906 | | // implements Message ---------------------------------------------- |
1907 | | |
1908 | 0 | RecursiveMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1909 | 0 | return CreateMaybeMessage<RecursiveMessage>(arena); |
1910 | 0 | } |
1911 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1912 | | void CopyFrom(const RecursiveMessage& from); |
1913 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1914 | 0 | void MergeFrom( const RecursiveMessage& from) { |
1915 | 0 | RecursiveMessage::MergeImpl(*this, from); |
1916 | 0 | } |
1917 | | private: |
1918 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1919 | | public: |
1920 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1921 | | bool IsInitialized() const final; |
1922 | | |
1923 | | size_t ByteSizeLong() const final; |
1924 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1925 | | uint8_t* _InternalSerialize( |
1926 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1927 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1928 | | |
1929 | | private: |
1930 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1931 | | void SharedDtor(); |
1932 | | void SetCachedSize(int size) const final; |
1933 | | void InternalSwap(RecursiveMessage* other); |
1934 | | |
1935 | | private: |
1936 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1937 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1938 | 0 | return "test.RecursiveMessage"; |
1939 | 0 | } |
1940 | | protected: |
1941 | | explicit RecursiveMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1942 | | bool is_message_owned = false); |
1943 | | public: |
1944 | | |
1945 | | static const ClassData _class_data_; |
1946 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1947 | | |
1948 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1949 | | |
1950 | | // nested types ---------------------------------------------------- |
1951 | | |
1952 | | // accessors ------------------------------------------------------- |
1953 | | |
1954 | | enum : int { |
1955 | | kDataFieldNumber = 2, |
1956 | | kChildFieldNumber = 1, |
1957 | | }; |
1958 | | // optional string data = 2; |
1959 | | bool has_data() const; |
1960 | | private: |
1961 | | bool _internal_has_data() const; |
1962 | | public: |
1963 | | void clear_data(); |
1964 | | const std::string& data() const; |
1965 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1966 | | void set_data(ArgT0&& arg0, ArgT... args); |
1967 | | std::string* mutable_data(); |
1968 | | PROTOBUF_NODISCARD std::string* release_data(); |
1969 | | void set_allocated_data(std::string* data); |
1970 | | private: |
1971 | | const std::string& _internal_data() const; |
1972 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); |
1973 | | std::string* _internal_mutable_data(); |
1974 | | public: |
1975 | | |
1976 | | // optional .test.RecursiveMessage child = 1; |
1977 | | bool has_child() const; |
1978 | | private: |
1979 | | bool _internal_has_child() const; |
1980 | | public: |
1981 | | void clear_child(); |
1982 | | const ::test::RecursiveMessage& child() const; |
1983 | | PROTOBUF_NODISCARD ::test::RecursiveMessage* release_child(); |
1984 | | ::test::RecursiveMessage* mutable_child(); |
1985 | | void set_allocated_child(::test::RecursiveMessage* child); |
1986 | | private: |
1987 | | const ::test::RecursiveMessage& _internal_child() const; |
1988 | | ::test::RecursiveMessage* _internal_mutable_child(); |
1989 | | public: |
1990 | | void unsafe_arena_set_allocated_child( |
1991 | | ::test::RecursiveMessage* child); |
1992 | | ::test::RecursiveMessage* unsafe_arena_release_child(); |
1993 | | |
1994 | | // @@protoc_insertion_point(class_scope:test.RecursiveMessage) |
1995 | | private: |
1996 | | class _Internal; |
1997 | | |
1998 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1999 | | typedef void InternalArenaConstructable_; |
2000 | | typedef void DestructorSkippable_; |
2001 | | struct Impl_ { |
2002 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2003 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2004 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; |
2005 | | ::test::RecursiveMessage* child_; |
2006 | | }; |
2007 | | union { Impl_ _impl_; }; |
2008 | | friend struct ::TableStruct_echo_2eproto; |
2009 | | }; |
2010 | | // =================================================================== |
2011 | | |
2012 | | class EchoService_Stub; |
2013 | | |
2014 | | class EchoService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2015 | | protected: |
2016 | | // This class should be treated as an abstract interface. |
2017 | 0 | inline EchoService() {}; |
2018 | | public: |
2019 | | virtual ~EchoService(); |
2020 | | |
2021 | | typedef EchoService_Stub Stub; |
2022 | | |
2023 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2024 | | |
2025 | | virtual void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2026 | | const ::test::EchoRequest* request, |
2027 | | ::test::EchoResponse* response, |
2028 | | ::google::protobuf::Closure* done); |
2029 | | virtual void ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2030 | | const ::test::ComboRequest* request, |
2031 | | ::test::ComboResponse* response, |
2032 | | ::google::protobuf::Closure* done); |
2033 | | virtual void BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2034 | | const ::test::BytesRequest* request, |
2035 | | ::test::BytesResponse* response, |
2036 | | ::google::protobuf::Closure* done); |
2037 | | virtual void BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2038 | | const ::test::BytesRequest* request, |
2039 | | ::test::BytesResponse* response, |
2040 | | ::google::protobuf::Closure* done); |
2041 | | |
2042 | | // implements Service ---------------------------------------------- |
2043 | | |
2044 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2045 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2046 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2047 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2048 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2049 | | ::google::protobuf::Closure* done); |
2050 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2051 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2052 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2053 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2054 | | |
2055 | | private: |
2056 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
2057 | | }; |
2058 | | |
2059 | | class EchoService_Stub : public EchoService { |
2060 | | public: |
2061 | | EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2062 | | EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2063 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2064 | | ~EchoService_Stub(); |
2065 | | |
2066 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2067 | | |
2068 | | // implements EchoService ------------------------------------------ |
2069 | | |
2070 | | void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2071 | | const ::test::EchoRequest* request, |
2072 | | ::test::EchoResponse* response, |
2073 | | ::google::protobuf::Closure* done); |
2074 | | void ComboEcho(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2075 | | const ::test::ComboRequest* request, |
2076 | | ::test::ComboResponse* response, |
2077 | | ::google::protobuf::Closure* done); |
2078 | | void BytesEcho1(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2079 | | const ::test::BytesRequest* request, |
2080 | | ::test::BytesResponse* response, |
2081 | | ::google::protobuf::Closure* done); |
2082 | | void BytesEcho2(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2083 | | const ::test::BytesRequest* request, |
2084 | | ::test::BytesResponse* response, |
2085 | | ::google::protobuf::Closure* done); |
2086 | | private: |
2087 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2088 | | bool owns_channel_; |
2089 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
2090 | | }; |
2091 | | |
2092 | | |
2093 | | // ------------------------------------------------------------------- |
2094 | | |
2095 | | class DownloadService_Stub; |
2096 | | |
2097 | | class DownloadService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2098 | | protected: |
2099 | | // This class should be treated as an abstract interface. |
2100 | 0 | inline DownloadService() {}; |
2101 | | public: |
2102 | | virtual ~DownloadService(); |
2103 | | |
2104 | | typedef DownloadService_Stub Stub; |
2105 | | |
2106 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2107 | | |
2108 | | virtual void Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2109 | | const ::test::HttpRequest* request, |
2110 | | ::test::HttpResponse* response, |
2111 | | ::google::protobuf::Closure* done); |
2112 | | virtual void DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2113 | | const ::test::HttpRequest* request, |
2114 | | ::test::HttpResponse* response, |
2115 | | ::google::protobuf::Closure* done); |
2116 | | |
2117 | | // implements Service ---------------------------------------------- |
2118 | | |
2119 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2120 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2121 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2122 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2123 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2124 | | ::google::protobuf::Closure* done); |
2125 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2126 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2127 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2128 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2129 | | |
2130 | | private: |
2131 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService); |
2132 | | }; |
2133 | | |
2134 | | class DownloadService_Stub : public DownloadService { |
2135 | | public: |
2136 | | DownloadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2137 | | DownloadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2138 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2139 | | ~DownloadService_Stub(); |
2140 | | |
2141 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2142 | | |
2143 | | // implements DownloadService ------------------------------------------ |
2144 | | |
2145 | | void Download(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2146 | | const ::test::HttpRequest* request, |
2147 | | ::test::HttpResponse* response, |
2148 | | ::google::protobuf::Closure* done); |
2149 | | void DownloadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2150 | | const ::test::HttpRequest* request, |
2151 | | ::test::HttpResponse* response, |
2152 | | ::google::protobuf::Closure* done); |
2153 | | private: |
2154 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2155 | | bool owns_channel_; |
2156 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DownloadService_Stub); |
2157 | | }; |
2158 | | |
2159 | | |
2160 | | // ------------------------------------------------------------------- |
2161 | | |
2162 | | class UploadService_Stub; |
2163 | | |
2164 | | class UploadService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2165 | | protected: |
2166 | | // This class should be treated as an abstract interface. |
2167 | 0 | inline UploadService() {}; |
2168 | | public: |
2169 | | virtual ~UploadService(); |
2170 | | |
2171 | | typedef UploadService_Stub Stub; |
2172 | | |
2173 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2174 | | |
2175 | | virtual void Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2176 | | const ::test::HttpRequest* request, |
2177 | | ::test::HttpResponse* response, |
2178 | | ::google::protobuf::Closure* done); |
2179 | | virtual void UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2180 | | const ::test::HttpRequest* request, |
2181 | | ::test::HttpResponse* response, |
2182 | | ::google::protobuf::Closure* done); |
2183 | | |
2184 | | // implements Service ---------------------------------------------- |
2185 | | |
2186 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2187 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2188 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2189 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2190 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2191 | | ::google::protobuf::Closure* done); |
2192 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2193 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2194 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2195 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2196 | | |
2197 | | private: |
2198 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService); |
2199 | | }; |
2200 | | |
2201 | | class UploadService_Stub : public UploadService { |
2202 | | public: |
2203 | | UploadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2204 | | UploadService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2205 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2206 | | ~UploadService_Stub(); |
2207 | | |
2208 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2209 | | |
2210 | | // implements UploadService ------------------------------------------ |
2211 | | |
2212 | | void Upload(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2213 | | const ::test::HttpRequest* request, |
2214 | | ::test::HttpResponse* response, |
2215 | | ::google::protobuf::Closure* done); |
2216 | | void UploadFailed(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2217 | | const ::test::HttpRequest* request, |
2218 | | ::test::HttpResponse* response, |
2219 | | ::google::protobuf::Closure* done); |
2220 | | private: |
2221 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2222 | | bool owns_channel_; |
2223 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UploadService_Stub); |
2224 | | }; |
2225 | | |
2226 | | |
2227 | | // ------------------------------------------------------------------- |
2228 | | |
2229 | | class UserNamingService_Stub; |
2230 | | |
2231 | | class UserNamingService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2232 | | protected: |
2233 | | // This class should be treated as an abstract interface. |
2234 | 0 | inline UserNamingService() {}; |
2235 | | public: |
2236 | | virtual ~UserNamingService(); |
2237 | | |
2238 | | typedef UserNamingService_Stub Stub; |
2239 | | |
2240 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2241 | | |
2242 | | virtual void ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2243 | | const ::test::HttpRequest* request, |
2244 | | ::test::HttpResponse* response, |
2245 | | ::google::protobuf::Closure* done); |
2246 | | virtual void Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2247 | | const ::test::HttpRequest* request, |
2248 | | ::test::HttpResponse* response, |
2249 | | ::google::protobuf::Closure* done); |
2250 | | |
2251 | | // implements Service ---------------------------------------------- |
2252 | | |
2253 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2254 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2255 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2256 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2257 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2258 | | ::google::protobuf::Closure* done); |
2259 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2260 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2261 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2262 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2263 | | |
2264 | | private: |
2265 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService); |
2266 | | }; |
2267 | | |
2268 | | class UserNamingService_Stub : public UserNamingService { |
2269 | | public: |
2270 | | UserNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2271 | | UserNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2272 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2273 | | ~UserNamingService_Stub(); |
2274 | | |
2275 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2276 | | |
2277 | | // implements UserNamingService ------------------------------------------ |
2278 | | |
2279 | | void ListNames(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2280 | | const ::test::HttpRequest* request, |
2281 | | ::test::HttpResponse* response, |
2282 | | ::google::protobuf::Closure* done); |
2283 | | void Touch(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2284 | | const ::test::HttpRequest* request, |
2285 | | ::test::HttpResponse* response, |
2286 | | ::google::protobuf::Closure* done); |
2287 | | private: |
2288 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2289 | | bool owns_channel_; |
2290 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UserNamingService_Stub); |
2291 | | }; |
2292 | | |
2293 | | |
2294 | | // ------------------------------------------------------------------- |
2295 | | |
2296 | | class DiscoveryNamingService_Stub; |
2297 | | |
2298 | | class DiscoveryNamingService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2299 | | protected: |
2300 | | // This class should be treated as an abstract interface. |
2301 | 0 | inline DiscoveryNamingService() {}; |
2302 | | public: |
2303 | | virtual ~DiscoveryNamingService(); |
2304 | | |
2305 | | typedef DiscoveryNamingService_Stub Stub; |
2306 | | |
2307 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2308 | | |
2309 | | virtual void Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2310 | | const ::test::HttpRequest* request, |
2311 | | ::test::HttpResponse* response, |
2312 | | ::google::protobuf::Closure* done); |
2313 | | virtual void Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2314 | | const ::test::HttpRequest* request, |
2315 | | ::test::HttpResponse* response, |
2316 | | ::google::protobuf::Closure* done); |
2317 | | virtual void Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2318 | | const ::test::HttpRequest* request, |
2319 | | ::test::HttpResponse* response, |
2320 | | ::google::protobuf::Closure* done); |
2321 | | virtual void Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2322 | | const ::test::HttpRequest* request, |
2323 | | ::test::HttpResponse* response, |
2324 | | ::google::protobuf::Closure* done); |
2325 | | virtual void Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2326 | | const ::test::HttpRequest* request, |
2327 | | ::test::HttpResponse* response, |
2328 | | ::google::protobuf::Closure* done); |
2329 | | |
2330 | | // implements Service ---------------------------------------------- |
2331 | | |
2332 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2333 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2334 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2335 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2336 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2337 | | ::google::protobuf::Closure* done); |
2338 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2339 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2340 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2341 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2342 | | |
2343 | | private: |
2344 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService); |
2345 | | }; |
2346 | | |
2347 | | class DiscoveryNamingService_Stub : public DiscoveryNamingService { |
2348 | | public: |
2349 | | DiscoveryNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2350 | | DiscoveryNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2351 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2352 | | ~DiscoveryNamingService_Stub(); |
2353 | | |
2354 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2355 | | |
2356 | | // implements DiscoveryNamingService ------------------------------------------ |
2357 | | |
2358 | | void Nodes(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2359 | | const ::test::HttpRequest* request, |
2360 | | ::test::HttpResponse* response, |
2361 | | ::google::protobuf::Closure* done); |
2362 | | void Fetchs(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2363 | | const ::test::HttpRequest* request, |
2364 | | ::test::HttpResponse* response, |
2365 | | ::google::protobuf::Closure* done); |
2366 | | void Register(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2367 | | const ::test::HttpRequest* request, |
2368 | | ::test::HttpResponse* response, |
2369 | | ::google::protobuf::Closure* done); |
2370 | | void Renew(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2371 | | const ::test::HttpRequest* request, |
2372 | | ::test::HttpResponse* response, |
2373 | | ::google::protobuf::Closure* done); |
2374 | | void Cancel(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2375 | | const ::test::HttpRequest* request, |
2376 | | ::test::HttpResponse* response, |
2377 | | ::google::protobuf::Closure* done); |
2378 | | private: |
2379 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2380 | | bool owns_channel_; |
2381 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DiscoveryNamingService_Stub); |
2382 | | }; |
2383 | | |
2384 | | |
2385 | | // ------------------------------------------------------------------- |
2386 | | |
2387 | | class NacosNamingService_Stub; |
2388 | | |
2389 | | class NacosNamingService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2390 | | protected: |
2391 | | // This class should be treated as an abstract interface. |
2392 | 0 | inline NacosNamingService() {}; |
2393 | | public: |
2394 | | virtual ~NacosNamingService(); |
2395 | | |
2396 | | typedef NacosNamingService_Stub Stub; |
2397 | | |
2398 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2399 | | |
2400 | | virtual void Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2401 | | const ::test::HttpRequest* request, |
2402 | | ::test::HttpResponse* response, |
2403 | | ::google::protobuf::Closure* done); |
2404 | | virtual void List(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2405 | | const ::test::HttpRequest* request, |
2406 | | ::test::HttpResponse* response, |
2407 | | ::google::protobuf::Closure* done); |
2408 | | |
2409 | | // implements Service ---------------------------------------------- |
2410 | | |
2411 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2412 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2413 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2414 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2415 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2416 | | ::google::protobuf::Closure* done); |
2417 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2418 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2419 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2420 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2421 | | |
2422 | | private: |
2423 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService); |
2424 | | }; |
2425 | | |
2426 | | class NacosNamingService_Stub : public NacosNamingService { |
2427 | | public: |
2428 | | NacosNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2429 | | NacosNamingService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2430 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2431 | | ~NacosNamingService_Stub(); |
2432 | | |
2433 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2434 | | |
2435 | | // implements NacosNamingService ------------------------------------------ |
2436 | | |
2437 | | void Login(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2438 | | const ::test::HttpRequest* request, |
2439 | | ::test::HttpResponse* response, |
2440 | | ::google::protobuf::Closure* done); |
2441 | | void List(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2442 | | const ::test::HttpRequest* request, |
2443 | | ::test::HttpResponse* response, |
2444 | | ::google::protobuf::Closure* done); |
2445 | | private: |
2446 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2447 | | bool owns_channel_; |
2448 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NacosNamingService_Stub); |
2449 | | }; |
2450 | | |
2451 | | |
2452 | | // ------------------------------------------------------------------- |
2453 | | |
2454 | | class HttpService_Stub; |
2455 | | |
2456 | | class HttpService : public ::PROTOBUF_NAMESPACE_ID::Service { |
2457 | | protected: |
2458 | | // This class should be treated as an abstract interface. |
2459 | 0 | inline HttpService() {}; |
2460 | | public: |
2461 | | virtual ~HttpService(); |
2462 | | |
2463 | | typedef HttpService_Stub Stub; |
2464 | | |
2465 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
2466 | | |
2467 | | virtual void Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2468 | | const ::test::HttpRequest* request, |
2469 | | ::test::HttpResponse* response, |
2470 | | ::google::protobuf::Closure* done); |
2471 | | virtual void Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2472 | | const ::test::HttpRequest* request, |
2473 | | ::test::HttpResponse* response, |
2474 | | ::google::protobuf::Closure* done); |
2475 | | |
2476 | | // implements Service ---------------------------------------------- |
2477 | | |
2478 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
2479 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
2480 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2481 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
2482 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
2483 | | ::google::protobuf::Closure* done); |
2484 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
2485 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2486 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
2487 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
2488 | | |
2489 | | private: |
2490 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService); |
2491 | | }; |
2492 | | |
2493 | | class HttpService_Stub : public HttpService { |
2494 | | public: |
2495 | | HttpService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
2496 | | HttpService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
2497 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
2498 | | ~HttpService_Stub(); |
2499 | | |
2500 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
2501 | | |
2502 | | // implements HttpService ------------------------------------------ |
2503 | | |
2504 | | void Head(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2505 | | const ::test::HttpRequest* request, |
2506 | | ::test::HttpResponse* response, |
2507 | | ::google::protobuf::Closure* done); |
2508 | | void Expect(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
2509 | | const ::test::HttpRequest* request, |
2510 | | ::test::HttpResponse* response, |
2511 | | ::google::protobuf::Closure* done); |
2512 | | private: |
2513 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
2514 | | bool owns_channel_; |
2515 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(HttpService_Stub); |
2516 | | }; |
2517 | | |
2518 | | |
2519 | | // =================================================================== |
2520 | | |
2521 | | |
2522 | | // =================================================================== |
2523 | | |
2524 | | #ifdef __GNUC__ |
2525 | | #pragma GCC diagnostic push |
2526 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
2527 | | #endif // __GNUC__ |
2528 | | // EchoRequest |
2529 | | |
2530 | | // required string message = 1; |
2531 | 0 | inline bool EchoRequest::_internal_has_message() const { |
2532 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2533 | 0 | return value; |
2534 | 0 | } |
2535 | 0 | inline bool EchoRequest::has_message() const { |
2536 | 0 | return _internal_has_message(); |
2537 | 0 | } |
2538 | 0 | inline void EchoRequest::clear_message() { |
2539 | 0 | _impl_.message_.ClearToEmpty(); |
2540 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2541 | 0 | } |
2542 | 0 | inline const std::string& EchoRequest::message() const { |
2543 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.message) |
2544 | 0 | return _internal_message(); |
2545 | 0 | } |
2546 | | template <typename ArgT0, typename... ArgT> |
2547 | | inline PROTOBUF_ALWAYS_INLINE |
2548 | | void EchoRequest::set_message(ArgT0&& arg0, ArgT... args) { |
2549 | | _impl_._has_bits_[0] |= 0x00000001u; |
2550 | | _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
2551 | | // @@protoc_insertion_point(field_set:test.EchoRequest.message) |
2552 | | } |
2553 | 0 | inline std::string* EchoRequest::mutable_message() { |
2554 | 0 | std::string* _s = _internal_mutable_message(); |
2555 | 0 | // @@protoc_insertion_point(field_mutable:test.EchoRequest.message) |
2556 | 0 | return _s; |
2557 | 0 | } |
2558 | 0 | inline const std::string& EchoRequest::_internal_message() const { |
2559 | 0 | return _impl_.message_.Get(); |
2560 | 0 | } |
2561 | 0 | inline void EchoRequest::_internal_set_message(const std::string& value) { |
2562 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2563 | 0 | _impl_.message_.Set(value, GetArenaForAllocation()); |
2564 | 0 | } |
2565 | 0 | inline std::string* EchoRequest::_internal_mutable_message() { |
2566 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2567 | 0 | return _impl_.message_.Mutable(GetArenaForAllocation()); |
2568 | 0 | } |
2569 | 0 | inline std::string* EchoRequest::release_message() { |
2570 | 0 | // @@protoc_insertion_point(field_release:test.EchoRequest.message) |
2571 | 0 | if (!_internal_has_message()) { |
2572 | 0 | return nullptr; |
2573 | 0 | } |
2574 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2575 | 0 | auto* p = _impl_.message_.Release(); |
2576 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2577 | 0 | if (_impl_.message_.IsDefault()) { |
2578 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
2579 | 0 | } |
2580 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2581 | 0 | return p; |
2582 | 0 | } |
2583 | 0 | inline void EchoRequest::set_allocated_message(std::string* message) { |
2584 | 0 | if (message != nullptr) { |
2585 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2586 | 0 | } else { |
2587 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2588 | 0 | } |
2589 | 0 | _impl_.message_.SetAllocated(message, GetArenaForAllocation()); |
2590 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2591 | 0 | if (_impl_.message_.IsDefault()) { |
2592 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
2593 | 0 | } |
2594 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2595 | 0 | // @@protoc_insertion_point(field_set_allocated:test.EchoRequest.message) |
2596 | 0 | } |
2597 | | |
2598 | | // optional int32 code = 2; |
2599 | 0 | inline bool EchoRequest::_internal_has_code() const { |
2600 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
2601 | 0 | return value; |
2602 | 0 | } |
2603 | 0 | inline bool EchoRequest::has_code() const { |
2604 | 0 | return _internal_has_code(); |
2605 | 0 | } |
2606 | 0 | inline void EchoRequest::clear_code() { |
2607 | 0 | _impl_.code_ = 0; |
2608 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
2609 | 0 | } |
2610 | 0 | inline int32_t EchoRequest::_internal_code() const { |
2611 | 0 | return _impl_.code_; |
2612 | 0 | } |
2613 | 0 | inline int32_t EchoRequest::code() const { |
2614 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.code) |
2615 | 0 | return _internal_code(); |
2616 | 0 | } |
2617 | 0 | inline void EchoRequest::_internal_set_code(int32_t value) { |
2618 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
2619 | 0 | _impl_.code_ = value; |
2620 | 0 | } |
2621 | 0 | inline void EchoRequest::set_code(int32_t value) { |
2622 | 0 | _internal_set_code(value); |
2623 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.code) |
2624 | 0 | } |
2625 | | |
2626 | | // optional bool close_fd = 3; |
2627 | 0 | inline bool EchoRequest::_internal_has_close_fd() const { |
2628 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
2629 | 0 | return value; |
2630 | 0 | } |
2631 | 0 | inline bool EchoRequest::has_close_fd() const { |
2632 | 0 | return _internal_has_close_fd(); |
2633 | 0 | } |
2634 | 0 | inline void EchoRequest::clear_close_fd() { |
2635 | 0 | _impl_.close_fd_ = false; |
2636 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
2637 | 0 | } |
2638 | 0 | inline bool EchoRequest::_internal_close_fd() const { |
2639 | 0 | return _impl_.close_fd_; |
2640 | 0 | } |
2641 | 0 | inline bool EchoRequest::close_fd() const { |
2642 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.close_fd) |
2643 | 0 | return _internal_close_fd(); |
2644 | 0 | } |
2645 | 0 | inline void EchoRequest::_internal_set_close_fd(bool value) { |
2646 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
2647 | 0 | _impl_.close_fd_ = value; |
2648 | 0 | } |
2649 | 0 | inline void EchoRequest::set_close_fd(bool value) { |
2650 | 0 | _internal_set_close_fd(value); |
2651 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.close_fd) |
2652 | 0 | } |
2653 | | |
2654 | | // optional int32 sleep_us = 4; |
2655 | 0 | inline bool EchoRequest::_internal_has_sleep_us() const { |
2656 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
2657 | 0 | return value; |
2658 | 0 | } |
2659 | 0 | inline bool EchoRequest::has_sleep_us() const { |
2660 | 0 | return _internal_has_sleep_us(); |
2661 | 0 | } |
2662 | 0 | inline void EchoRequest::clear_sleep_us() { |
2663 | 0 | _impl_.sleep_us_ = 0; |
2664 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
2665 | 0 | } |
2666 | 0 | inline int32_t EchoRequest::_internal_sleep_us() const { |
2667 | 0 | return _impl_.sleep_us_; |
2668 | 0 | } |
2669 | 0 | inline int32_t EchoRequest::sleep_us() const { |
2670 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.sleep_us) |
2671 | 0 | return _internal_sleep_us(); |
2672 | 0 | } |
2673 | 0 | inline void EchoRequest::_internal_set_sleep_us(int32_t value) { |
2674 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
2675 | 0 | _impl_.sleep_us_ = value; |
2676 | 0 | } |
2677 | 0 | inline void EchoRequest::set_sleep_us(int32_t value) { |
2678 | 0 | _internal_set_sleep_us(value); |
2679 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.sleep_us) |
2680 | 0 | } |
2681 | | |
2682 | | // optional int32 server_fail = 5; |
2683 | 0 | inline bool EchoRequest::_internal_has_server_fail() const { |
2684 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
2685 | 0 | return value; |
2686 | 0 | } |
2687 | 0 | inline bool EchoRequest::has_server_fail() const { |
2688 | 0 | return _internal_has_server_fail(); |
2689 | 0 | } |
2690 | 0 | inline void EchoRequest::clear_server_fail() { |
2691 | 0 | _impl_.server_fail_ = 0; |
2692 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
2693 | 0 | } |
2694 | 0 | inline int32_t EchoRequest::_internal_server_fail() const { |
2695 | 0 | return _impl_.server_fail_; |
2696 | 0 | } |
2697 | 0 | inline int32_t EchoRequest::server_fail() const { |
2698 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.server_fail) |
2699 | 0 | return _internal_server_fail(); |
2700 | 0 | } |
2701 | 0 | inline void EchoRequest::_internal_set_server_fail(int32_t value) { |
2702 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
2703 | 0 | _impl_.server_fail_ = value; |
2704 | 0 | } |
2705 | 0 | inline void EchoRequest::set_server_fail(int32_t value) { |
2706 | 0 | _internal_set_server_fail(value); |
2707 | 0 | // @@protoc_insertion_point(field_set:test.EchoRequest.server_fail) |
2708 | 0 | } |
2709 | | |
2710 | | // optional string http_header = 6; |
2711 | 0 | inline bool EchoRequest::_internal_has_http_header() const { |
2712 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
2713 | 0 | return value; |
2714 | 0 | } |
2715 | 0 | inline bool EchoRequest::has_http_header() const { |
2716 | 0 | return _internal_has_http_header(); |
2717 | 0 | } |
2718 | 0 | inline void EchoRequest::clear_http_header() { |
2719 | 0 | _impl_.http_header_.ClearToEmpty(); |
2720 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2721 | 0 | } |
2722 | 0 | inline const std::string& EchoRequest::http_header() const { |
2723 | 0 | // @@protoc_insertion_point(field_get:test.EchoRequest.http_header) |
2724 | 0 | return _internal_http_header(); |
2725 | 0 | } |
2726 | | template <typename ArgT0, typename... ArgT> |
2727 | | inline PROTOBUF_ALWAYS_INLINE |
2728 | | void EchoRequest::set_http_header(ArgT0&& arg0, ArgT... args) { |
2729 | | _impl_._has_bits_[0] |= 0x00000002u; |
2730 | | _impl_.http_header_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
2731 | | // @@protoc_insertion_point(field_set:test.EchoRequest.http_header) |
2732 | | } |
2733 | 0 | inline std::string* EchoRequest::mutable_http_header() { |
2734 | 0 | std::string* _s = _internal_mutable_http_header(); |
2735 | 0 | // @@protoc_insertion_point(field_mutable:test.EchoRequest.http_header) |
2736 | 0 | return _s; |
2737 | 0 | } |
2738 | 0 | inline const std::string& EchoRequest::_internal_http_header() const { |
2739 | 0 | return _impl_.http_header_.Get(); |
2740 | 0 | } |
2741 | 0 | inline void EchoRequest::_internal_set_http_header(const std::string& value) { |
2742 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2743 | 0 | _impl_.http_header_.Set(value, GetArenaForAllocation()); |
2744 | 0 | } |
2745 | 0 | inline std::string* EchoRequest::_internal_mutable_http_header() { |
2746 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2747 | 0 | return _impl_.http_header_.Mutable(GetArenaForAllocation()); |
2748 | 0 | } |
2749 | 0 | inline std::string* EchoRequest::release_http_header() { |
2750 | 0 | // @@protoc_insertion_point(field_release:test.EchoRequest.http_header) |
2751 | 0 | if (!_internal_has_http_header()) { |
2752 | 0 | return nullptr; |
2753 | 0 | } |
2754 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2755 | 0 | auto* p = _impl_.http_header_.Release(); |
2756 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2757 | 0 | if (_impl_.http_header_.IsDefault()) { |
2758 | 0 | _impl_.http_header_.Set("", GetArenaForAllocation()); |
2759 | 0 | } |
2760 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2761 | 0 | return p; |
2762 | 0 | } |
2763 | 0 | inline void EchoRequest::set_allocated_http_header(std::string* http_header) { |
2764 | 0 | if (http_header != nullptr) { |
2765 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2766 | 0 | } else { |
2767 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2768 | 0 | } |
2769 | 0 | _impl_.http_header_.SetAllocated(http_header, GetArenaForAllocation()); |
2770 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2771 | 0 | if (_impl_.http_header_.IsDefault()) { |
2772 | 0 | _impl_.http_header_.Set("", GetArenaForAllocation()); |
2773 | 0 | } |
2774 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2775 | 0 | // @@protoc_insertion_point(field_set_allocated:test.EchoRequest.http_header) |
2776 | 0 | } |
2777 | | |
2778 | | // ------------------------------------------------------------------- |
2779 | | |
2780 | | // EchoResponse |
2781 | | |
2782 | | // required string message = 1; |
2783 | 0 | inline bool EchoResponse::_internal_has_message() const { |
2784 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2785 | 0 | return value; |
2786 | 0 | } |
2787 | 0 | inline bool EchoResponse::has_message() const { |
2788 | 0 | return _internal_has_message(); |
2789 | 0 | } |
2790 | 0 | inline void EchoResponse::clear_message() { |
2791 | 0 | _impl_.message_.ClearToEmpty(); |
2792 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2793 | 0 | } |
2794 | 0 | inline const std::string& EchoResponse::message() const { |
2795 | 0 | // @@protoc_insertion_point(field_get:test.EchoResponse.message) |
2796 | 0 | return _internal_message(); |
2797 | 0 | } |
2798 | | template <typename ArgT0, typename... ArgT> |
2799 | | inline PROTOBUF_ALWAYS_INLINE |
2800 | | void EchoResponse::set_message(ArgT0&& arg0, ArgT... args) { |
2801 | | _impl_._has_bits_[0] |= 0x00000001u; |
2802 | | _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
2803 | | // @@protoc_insertion_point(field_set:test.EchoResponse.message) |
2804 | | } |
2805 | 0 | inline std::string* EchoResponse::mutable_message() { |
2806 | 0 | std::string* _s = _internal_mutable_message(); |
2807 | 0 | // @@protoc_insertion_point(field_mutable:test.EchoResponse.message) |
2808 | 0 | return _s; |
2809 | 0 | } |
2810 | 0 | inline const std::string& EchoResponse::_internal_message() const { |
2811 | 0 | return _impl_.message_.Get(); |
2812 | 0 | } |
2813 | 0 | inline void EchoResponse::_internal_set_message(const std::string& value) { |
2814 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2815 | 0 | _impl_.message_.Set(value, GetArenaForAllocation()); |
2816 | 0 | } |
2817 | 0 | inline std::string* EchoResponse::_internal_mutable_message() { |
2818 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2819 | 0 | return _impl_.message_.Mutable(GetArenaForAllocation()); |
2820 | 0 | } |
2821 | 0 | inline std::string* EchoResponse::release_message() { |
2822 | 0 | // @@protoc_insertion_point(field_release:test.EchoResponse.message) |
2823 | 0 | if (!_internal_has_message()) { |
2824 | 0 | return nullptr; |
2825 | 0 | } |
2826 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2827 | 0 | auto* p = _impl_.message_.Release(); |
2828 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2829 | 0 | if (_impl_.message_.IsDefault()) { |
2830 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
2831 | 0 | } |
2832 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2833 | 0 | return p; |
2834 | 0 | } |
2835 | 0 | inline void EchoResponse::set_allocated_message(std::string* message) { |
2836 | 0 | if (message != nullptr) { |
2837 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
2838 | 0 | } else { |
2839 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2840 | 0 | } |
2841 | 0 | _impl_.message_.SetAllocated(message, GetArenaForAllocation()); |
2842 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2843 | 0 | if (_impl_.message_.IsDefault()) { |
2844 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
2845 | 0 | } |
2846 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
2847 | 0 | // @@protoc_insertion_point(field_set_allocated:test.EchoResponse.message) |
2848 | 0 | } |
2849 | | |
2850 | | // repeated int32 code_list = 2; |
2851 | 0 | inline int EchoResponse::_internal_code_list_size() const { |
2852 | 0 | return _impl_.code_list_.size(); |
2853 | 0 | } |
2854 | 0 | inline int EchoResponse::code_list_size() const { |
2855 | 0 | return _internal_code_list_size(); |
2856 | 0 | } |
2857 | 0 | inline void EchoResponse::clear_code_list() { |
2858 | 0 | _impl_.code_list_.Clear(); |
2859 | 0 | } |
2860 | 0 | inline int32_t EchoResponse::_internal_code_list(int index) const { |
2861 | 0 | return _impl_.code_list_.Get(index); |
2862 | 0 | } |
2863 | 0 | inline int32_t EchoResponse::code_list(int index) const { |
2864 | 0 | // @@protoc_insertion_point(field_get:test.EchoResponse.code_list) |
2865 | 0 | return _internal_code_list(index); |
2866 | 0 | } |
2867 | 0 | inline void EchoResponse::set_code_list(int index, int32_t value) { |
2868 | 0 | _impl_.code_list_.Set(index, value); |
2869 | 0 | // @@protoc_insertion_point(field_set:test.EchoResponse.code_list) |
2870 | 0 | } |
2871 | 0 | inline void EchoResponse::_internal_add_code_list(int32_t value) { |
2872 | 0 | _impl_.code_list_.Add(value); |
2873 | 0 | } |
2874 | 0 | inline void EchoResponse::add_code_list(int32_t value) { |
2875 | 0 | _internal_add_code_list(value); |
2876 | 0 | // @@protoc_insertion_point(field_add:test.EchoResponse.code_list) |
2877 | 0 | } |
2878 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
2879 | 0 | EchoResponse::_internal_code_list() const { |
2880 | 0 | return _impl_.code_list_; |
2881 | 0 | } |
2882 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
2883 | 0 | EchoResponse::code_list() const { |
2884 | 0 | // @@protoc_insertion_point(field_list:test.EchoResponse.code_list) |
2885 | 0 | return _internal_code_list(); |
2886 | 0 | } |
2887 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
2888 | 0 | EchoResponse::_internal_mutable_code_list() { |
2889 | 0 | return &_impl_.code_list_; |
2890 | 0 | } |
2891 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
2892 | 0 | EchoResponse::mutable_code_list() { |
2893 | 0 | // @@protoc_insertion_point(field_mutable_list:test.EchoResponse.code_list) |
2894 | 0 | return _internal_mutable_code_list(); |
2895 | 0 | } |
2896 | | |
2897 | | // optional uint64 receiving_socket_id = 3; |
2898 | 0 | inline bool EchoResponse::_internal_has_receiving_socket_id() const { |
2899 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
2900 | 0 | return value; |
2901 | 0 | } |
2902 | 0 | inline bool EchoResponse::has_receiving_socket_id() const { |
2903 | 0 | return _internal_has_receiving_socket_id(); |
2904 | 0 | } |
2905 | 0 | inline void EchoResponse::clear_receiving_socket_id() { |
2906 | 0 | _impl_.receiving_socket_id_ = uint64_t{0u}; |
2907 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
2908 | 0 | } |
2909 | 0 | inline uint64_t EchoResponse::_internal_receiving_socket_id() const { |
2910 | 0 | return _impl_.receiving_socket_id_; |
2911 | 0 | } |
2912 | 0 | inline uint64_t EchoResponse::receiving_socket_id() const { |
2913 | 0 | // @@protoc_insertion_point(field_get:test.EchoResponse.receiving_socket_id) |
2914 | 0 | return _internal_receiving_socket_id(); |
2915 | 0 | } |
2916 | 0 | inline void EchoResponse::_internal_set_receiving_socket_id(uint64_t value) { |
2917 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
2918 | 0 | _impl_.receiving_socket_id_ = value; |
2919 | 0 | } |
2920 | 0 | inline void EchoResponse::set_receiving_socket_id(uint64_t value) { |
2921 | 0 | _internal_set_receiving_socket_id(value); |
2922 | 0 | // @@protoc_insertion_point(field_set:test.EchoResponse.receiving_socket_id) |
2923 | 0 | } |
2924 | | |
2925 | | // ------------------------------------------------------------------- |
2926 | | |
2927 | | // ComboRequest |
2928 | | |
2929 | | // repeated .test.EchoRequest requests = 1; |
2930 | 0 | inline int ComboRequest::_internal_requests_size() const { |
2931 | 0 | return _impl_.requests_.size(); |
2932 | 0 | } |
2933 | 0 | inline int ComboRequest::requests_size() const { |
2934 | 0 | return _internal_requests_size(); |
2935 | 0 | } |
2936 | 0 | inline void ComboRequest::clear_requests() { |
2937 | 0 | _impl_.requests_.Clear(); |
2938 | 0 | } |
2939 | 0 | inline ::test::EchoRequest* ComboRequest::mutable_requests(int index) { |
2940 | 0 | // @@protoc_insertion_point(field_mutable:test.ComboRequest.requests) |
2941 | 0 | return _impl_.requests_.Mutable(index); |
2942 | 0 | } |
2943 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoRequest >* |
2944 | 0 | ComboRequest::mutable_requests() { |
2945 | 0 | // @@protoc_insertion_point(field_mutable_list:test.ComboRequest.requests) |
2946 | 0 | return &_impl_.requests_; |
2947 | 0 | } |
2948 | 0 | inline const ::test::EchoRequest& ComboRequest::_internal_requests(int index) const { |
2949 | 0 | return _impl_.requests_.Get(index); |
2950 | 0 | } |
2951 | 0 | inline const ::test::EchoRequest& ComboRequest::requests(int index) const { |
2952 | 0 | // @@protoc_insertion_point(field_get:test.ComboRequest.requests) |
2953 | 0 | return _internal_requests(index); |
2954 | 0 | } |
2955 | 0 | inline ::test::EchoRequest* ComboRequest::_internal_add_requests() { |
2956 | 0 | return _impl_.requests_.Add(); |
2957 | 0 | } |
2958 | 0 | inline ::test::EchoRequest* ComboRequest::add_requests() { |
2959 | 0 | ::test::EchoRequest* _add = _internal_add_requests(); |
2960 | 0 | // @@protoc_insertion_point(field_add:test.ComboRequest.requests) |
2961 | 0 | return _add; |
2962 | 0 | } |
2963 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoRequest >& |
2964 | 0 | ComboRequest::requests() const { |
2965 | 0 | // @@protoc_insertion_point(field_list:test.ComboRequest.requests) |
2966 | 0 | return _impl_.requests_; |
2967 | 0 | } |
2968 | | |
2969 | | // ------------------------------------------------------------------- |
2970 | | |
2971 | | // BytesRequest |
2972 | | |
2973 | | // required bytes databytes = 1; |
2974 | 0 | inline bool BytesRequest::_internal_has_databytes() const { |
2975 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
2976 | 0 | return value; |
2977 | 0 | } |
2978 | 0 | inline bool BytesRequest::has_databytes() const { |
2979 | 0 | return _internal_has_databytes(); |
2980 | 0 | } |
2981 | 0 | inline void BytesRequest::clear_databytes() { |
2982 | 0 | _impl_.databytes_.ClearToEmpty(); |
2983 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
2984 | 0 | } |
2985 | 0 | inline const std::string& BytesRequest::databytes() const { |
2986 | 0 | // @@protoc_insertion_point(field_get:test.BytesRequest.databytes) |
2987 | 0 | return _internal_databytes(); |
2988 | 0 | } |
2989 | | template <typename ArgT0, typename... ArgT> |
2990 | | inline PROTOBUF_ALWAYS_INLINE |
2991 | | void BytesRequest::set_databytes(ArgT0&& arg0, ArgT... args) { |
2992 | | _impl_._has_bits_[0] |= 0x00000001u; |
2993 | | _impl_.databytes_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
2994 | | // @@protoc_insertion_point(field_set:test.BytesRequest.databytes) |
2995 | | } |
2996 | 0 | inline std::string* BytesRequest::mutable_databytes() { |
2997 | 0 | std::string* _s = _internal_mutable_databytes(); |
2998 | 0 | // @@protoc_insertion_point(field_mutable:test.BytesRequest.databytes) |
2999 | 0 | return _s; |
3000 | 0 | } |
3001 | 0 | inline const std::string& BytesRequest::_internal_databytes() const { |
3002 | 0 | return _impl_.databytes_.Get(); |
3003 | 0 | } |
3004 | 0 | inline void BytesRequest::_internal_set_databytes(const std::string& value) { |
3005 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3006 | 0 | _impl_.databytes_.Set(value, GetArenaForAllocation()); |
3007 | 0 | } |
3008 | 0 | inline std::string* BytesRequest::_internal_mutable_databytes() { |
3009 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3010 | 0 | return _impl_.databytes_.Mutable(GetArenaForAllocation()); |
3011 | 0 | } |
3012 | 0 | inline std::string* BytesRequest::release_databytes() { |
3013 | 0 | // @@protoc_insertion_point(field_release:test.BytesRequest.databytes) |
3014 | 0 | if (!_internal_has_databytes()) { |
3015 | 0 | return nullptr; |
3016 | 0 | } |
3017 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3018 | 0 | auto* p = _impl_.databytes_.Release(); |
3019 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3020 | 0 | if (_impl_.databytes_.IsDefault()) { |
3021 | 0 | _impl_.databytes_.Set("", GetArenaForAllocation()); |
3022 | 0 | } |
3023 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3024 | 0 | return p; |
3025 | 0 | } |
3026 | 0 | inline void BytesRequest::set_allocated_databytes(std::string* databytes) { |
3027 | 0 | if (databytes != nullptr) { |
3028 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3029 | 0 | } else { |
3030 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3031 | 0 | } |
3032 | 0 | _impl_.databytes_.SetAllocated(databytes, GetArenaForAllocation()); |
3033 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3034 | 0 | if (_impl_.databytes_.IsDefault()) { |
3035 | 0 | _impl_.databytes_.Set("", GetArenaForAllocation()); |
3036 | 0 | } |
3037 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3038 | 0 | // @@protoc_insertion_point(field_set_allocated:test.BytesRequest.databytes) |
3039 | 0 | } |
3040 | | |
3041 | | // ------------------------------------------------------------------- |
3042 | | |
3043 | | // BytesResponse |
3044 | | |
3045 | | // required bytes databytes = 1; |
3046 | 0 | inline bool BytesResponse::_internal_has_databytes() const { |
3047 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3048 | 0 | return value; |
3049 | 0 | } |
3050 | 0 | inline bool BytesResponse::has_databytes() const { |
3051 | 0 | return _internal_has_databytes(); |
3052 | 0 | } |
3053 | 0 | inline void BytesResponse::clear_databytes() { |
3054 | 0 | _impl_.databytes_.ClearToEmpty(); |
3055 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3056 | 0 | } |
3057 | 0 | inline const std::string& BytesResponse::databytes() const { |
3058 | 0 | // @@protoc_insertion_point(field_get:test.BytesResponse.databytes) |
3059 | 0 | return _internal_databytes(); |
3060 | 0 | } |
3061 | | template <typename ArgT0, typename... ArgT> |
3062 | | inline PROTOBUF_ALWAYS_INLINE |
3063 | | void BytesResponse::set_databytes(ArgT0&& arg0, ArgT... args) { |
3064 | | _impl_._has_bits_[0] |= 0x00000001u; |
3065 | | _impl_.databytes_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
3066 | | // @@protoc_insertion_point(field_set:test.BytesResponse.databytes) |
3067 | | } |
3068 | 0 | inline std::string* BytesResponse::mutable_databytes() { |
3069 | 0 | std::string* _s = _internal_mutable_databytes(); |
3070 | 0 | // @@protoc_insertion_point(field_mutable:test.BytesResponse.databytes) |
3071 | 0 | return _s; |
3072 | 0 | } |
3073 | 0 | inline const std::string& BytesResponse::_internal_databytes() const { |
3074 | 0 | return _impl_.databytes_.Get(); |
3075 | 0 | } |
3076 | 0 | inline void BytesResponse::_internal_set_databytes(const std::string& value) { |
3077 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3078 | 0 | _impl_.databytes_.Set(value, GetArenaForAllocation()); |
3079 | 0 | } |
3080 | 0 | inline std::string* BytesResponse::_internal_mutable_databytes() { |
3081 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3082 | 0 | return _impl_.databytes_.Mutable(GetArenaForAllocation()); |
3083 | 0 | } |
3084 | 0 | inline std::string* BytesResponse::release_databytes() { |
3085 | 0 | // @@protoc_insertion_point(field_release:test.BytesResponse.databytes) |
3086 | 0 | if (!_internal_has_databytes()) { |
3087 | 0 | return nullptr; |
3088 | 0 | } |
3089 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3090 | 0 | auto* p = _impl_.databytes_.Release(); |
3091 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3092 | 0 | if (_impl_.databytes_.IsDefault()) { |
3093 | 0 | _impl_.databytes_.Set("", GetArenaForAllocation()); |
3094 | 0 | } |
3095 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3096 | 0 | return p; |
3097 | 0 | } |
3098 | 0 | inline void BytesResponse::set_allocated_databytes(std::string* databytes) { |
3099 | 0 | if (databytes != nullptr) { |
3100 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3101 | 0 | } else { |
3102 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3103 | 0 | } |
3104 | 0 | _impl_.databytes_.SetAllocated(databytes, GetArenaForAllocation()); |
3105 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3106 | 0 | if (_impl_.databytes_.IsDefault()) { |
3107 | 0 | _impl_.databytes_.Set("", GetArenaForAllocation()); |
3108 | 0 | } |
3109 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3110 | 0 | // @@protoc_insertion_point(field_set_allocated:test.BytesResponse.databytes) |
3111 | 0 | } |
3112 | | |
3113 | | // ------------------------------------------------------------------- |
3114 | | |
3115 | | // ComboResponse |
3116 | | |
3117 | | // repeated .test.EchoResponse responses = 1; |
3118 | 0 | inline int ComboResponse::_internal_responses_size() const { |
3119 | 0 | return _impl_.responses_.size(); |
3120 | 0 | } |
3121 | 0 | inline int ComboResponse::responses_size() const { |
3122 | 0 | return _internal_responses_size(); |
3123 | 0 | } |
3124 | 0 | inline void ComboResponse::clear_responses() { |
3125 | 0 | _impl_.responses_.Clear(); |
3126 | 0 | } |
3127 | 0 | inline ::test::EchoResponse* ComboResponse::mutable_responses(int index) { |
3128 | 0 | // @@protoc_insertion_point(field_mutable:test.ComboResponse.responses) |
3129 | 0 | return _impl_.responses_.Mutable(index); |
3130 | 0 | } |
3131 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoResponse >* |
3132 | 0 | ComboResponse::mutable_responses() { |
3133 | 0 | // @@protoc_insertion_point(field_mutable_list:test.ComboResponse.responses) |
3134 | 0 | return &_impl_.responses_; |
3135 | 0 | } |
3136 | 0 | inline const ::test::EchoResponse& ComboResponse::_internal_responses(int index) const { |
3137 | 0 | return _impl_.responses_.Get(index); |
3138 | 0 | } |
3139 | 0 | inline const ::test::EchoResponse& ComboResponse::responses(int index) const { |
3140 | 0 | // @@protoc_insertion_point(field_get:test.ComboResponse.responses) |
3141 | 0 | return _internal_responses(index); |
3142 | 0 | } |
3143 | 0 | inline ::test::EchoResponse* ComboResponse::_internal_add_responses() { |
3144 | 0 | return _impl_.responses_.Add(); |
3145 | 0 | } |
3146 | 0 | inline ::test::EchoResponse* ComboResponse::add_responses() { |
3147 | 0 | ::test::EchoResponse* _add = _internal_add_responses(); |
3148 | 0 | // @@protoc_insertion_point(field_add:test.ComboResponse.responses) |
3149 | 0 | return _add; |
3150 | 0 | } |
3151 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::test::EchoResponse >& |
3152 | 0 | ComboResponse::responses() const { |
3153 | 0 | // @@protoc_insertion_point(field_list:test.ComboResponse.responses) |
3154 | 0 | return _impl_.responses_; |
3155 | 0 | } |
3156 | | |
3157 | | // ------------------------------------------------------------------- |
3158 | | |
3159 | | // HttpRequest |
3160 | | |
3161 | | // ------------------------------------------------------------------- |
3162 | | |
3163 | | // HttpResponse |
3164 | | |
3165 | | // ------------------------------------------------------------------- |
3166 | | |
3167 | | // Message1 |
3168 | | |
3169 | | // required .test.State0 stat = 1; |
3170 | 0 | inline bool Message1::_internal_has_stat() const { |
3171 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3172 | 0 | return value; |
3173 | 0 | } |
3174 | 0 | inline bool Message1::has_stat() const { |
3175 | 0 | return _internal_has_stat(); |
3176 | 0 | } |
3177 | 0 | inline void Message1::clear_stat() { |
3178 | 0 | _impl_.stat_ = 0; |
3179 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3180 | 0 | } |
3181 | 0 | inline ::test::State0 Message1::_internal_stat() const { |
3182 | 0 | return static_cast< ::test::State0 >(_impl_.stat_); |
3183 | 0 | } |
3184 | 0 | inline ::test::State0 Message1::stat() const { |
3185 | 0 | // @@protoc_insertion_point(field_get:test.Message1.stat) |
3186 | 0 | return _internal_stat(); |
3187 | 0 | } |
3188 | 0 | inline void Message1::_internal_set_stat(::test::State0 value) { |
3189 | 0 | assert(::test::State0_IsValid(value)); |
3190 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3191 | 0 | _impl_.stat_ = value; |
3192 | 0 | } |
3193 | 0 | inline void Message1::set_stat(::test::State0 value) { |
3194 | 0 | _internal_set_stat(value); |
3195 | 0 | // @@protoc_insertion_point(field_set:test.Message1.stat) |
3196 | 0 | } |
3197 | | |
3198 | | // ------------------------------------------------------------------- |
3199 | | |
3200 | | // Message2 |
3201 | | |
3202 | | // required .test.State1 stat = 1; |
3203 | 0 | inline bool Message2::_internal_has_stat() const { |
3204 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3205 | 0 | return value; |
3206 | 0 | } |
3207 | 0 | inline bool Message2::has_stat() const { |
3208 | 0 | return _internal_has_stat(); |
3209 | 0 | } |
3210 | 0 | inline void Message2::clear_stat() { |
3211 | 0 | _impl_.stat_ = 0; |
3212 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3213 | 0 | } |
3214 | 0 | inline ::test::State1 Message2::_internal_stat() const { |
3215 | 0 | return static_cast< ::test::State1 >(_impl_.stat_); |
3216 | 0 | } |
3217 | 0 | inline ::test::State1 Message2::stat() const { |
3218 | 0 | // @@protoc_insertion_point(field_get:test.Message2.stat) |
3219 | 0 | return _internal_stat(); |
3220 | 0 | } |
3221 | 0 | inline void Message2::_internal_set_stat(::test::State1 value) { |
3222 | 0 | assert(::test::State1_IsValid(value)); |
3223 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3224 | 0 | _impl_.stat_ = value; |
3225 | 0 | } |
3226 | 0 | inline void Message2::set_stat(::test::State1 value) { |
3227 | 0 | _internal_set_stat(value); |
3228 | 0 | // @@protoc_insertion_point(field_set:test.Message2.stat) |
3229 | 0 | } |
3230 | | |
3231 | | // ------------------------------------------------------------------- |
3232 | | |
3233 | | // RecursiveMessage |
3234 | | |
3235 | | // optional .test.RecursiveMessage child = 1; |
3236 | 0 | inline bool RecursiveMessage::_internal_has_child() const { |
3237 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
3238 | 0 | PROTOBUF_ASSUME(!value || _impl_.child_ != nullptr); |
3239 | 0 | return value; |
3240 | 0 | } |
3241 | 0 | inline bool RecursiveMessage::has_child() const { |
3242 | 0 | return _internal_has_child(); |
3243 | 0 | } |
3244 | 0 | inline void RecursiveMessage::clear_child() { |
3245 | 0 | if (_impl_.child_ != nullptr) _impl_.child_->Clear(); |
3246 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3247 | 0 | } |
3248 | 0 | inline const ::test::RecursiveMessage& RecursiveMessage::_internal_child() const { |
3249 | 0 | const ::test::RecursiveMessage* p = _impl_.child_; |
3250 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::test::RecursiveMessage&>( |
3251 | 0 | ::test::_RecursiveMessage_default_instance_); |
3252 | 0 | } |
3253 | 0 | inline const ::test::RecursiveMessage& RecursiveMessage::child() const { |
3254 | 0 | // @@protoc_insertion_point(field_get:test.RecursiveMessage.child) |
3255 | 0 | return _internal_child(); |
3256 | 0 | } |
3257 | | inline void RecursiveMessage::unsafe_arena_set_allocated_child( |
3258 | 0 | ::test::RecursiveMessage* child) { |
3259 | 0 | if (GetArenaForAllocation() == nullptr) { |
3260 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.child_); |
3261 | 0 | } |
3262 | 0 | _impl_.child_ = child; |
3263 | 0 | if (child) { |
3264 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3265 | 0 | } else { |
3266 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3267 | 0 | } |
3268 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:test.RecursiveMessage.child) |
3269 | 0 | } |
3270 | 0 | inline ::test::RecursiveMessage* RecursiveMessage::release_child() { |
3271 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3272 | 0 | ::test::RecursiveMessage* temp = _impl_.child_; |
3273 | 0 | _impl_.child_ = nullptr; |
3274 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
3275 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
3276 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3277 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
3278 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
3279 | 0 | if (GetArenaForAllocation() != nullptr) { |
3280 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3281 | 0 | } |
3282 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
3283 | 0 | return temp; |
3284 | 0 | } |
3285 | 0 | inline ::test::RecursiveMessage* RecursiveMessage::unsafe_arena_release_child() { |
3286 | 0 | // @@protoc_insertion_point(field_release:test.RecursiveMessage.child) |
3287 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3288 | 0 | ::test::RecursiveMessage* temp = _impl_.child_; |
3289 | 0 | _impl_.child_ = nullptr; |
3290 | 0 | return temp; |
3291 | 0 | } |
3292 | 0 | inline ::test::RecursiveMessage* RecursiveMessage::_internal_mutable_child() { |
3293 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3294 | 0 | if (_impl_.child_ == nullptr) { |
3295 | 0 | auto* p = CreateMaybeMessage<::test::RecursiveMessage>(GetArenaForAllocation()); |
3296 | 0 | _impl_.child_ = p; |
3297 | 0 | } |
3298 | 0 | return _impl_.child_; |
3299 | 0 | } |
3300 | 0 | inline ::test::RecursiveMessage* RecursiveMessage::mutable_child() { |
3301 | 0 | ::test::RecursiveMessage* _msg = _internal_mutable_child(); |
3302 | 0 | // @@protoc_insertion_point(field_mutable:test.RecursiveMessage.child) |
3303 | 0 | return _msg; |
3304 | 0 | } |
3305 | 0 | inline void RecursiveMessage::set_allocated_child(::test::RecursiveMessage* child) { |
3306 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3307 | 0 | if (message_arena == nullptr) { |
3308 | 0 | delete _impl_.child_; |
3309 | 0 | } |
3310 | 0 | if (child) { |
3311 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3312 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(child); |
3313 | 0 | if (message_arena != submessage_arena) { |
3314 | 0 | child = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3315 | 0 | message_arena, child, submessage_arena); |
3316 | 0 | } |
3317 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
3318 | 0 | } else { |
3319 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
3320 | 0 | } |
3321 | 0 | _impl_.child_ = child; |
3322 | 0 | // @@protoc_insertion_point(field_set_allocated:test.RecursiveMessage.child) |
3323 | 0 | } |
3324 | | |
3325 | | // optional string data = 2; |
3326 | 0 | inline bool RecursiveMessage::_internal_has_data() const { |
3327 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
3328 | 0 | return value; |
3329 | 0 | } |
3330 | 0 | inline bool RecursiveMessage::has_data() const { |
3331 | 0 | return _internal_has_data(); |
3332 | 0 | } |
3333 | 0 | inline void RecursiveMessage::clear_data() { |
3334 | 0 | _impl_.data_.ClearToEmpty(); |
3335 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3336 | 0 | } |
3337 | 0 | inline const std::string& RecursiveMessage::data() const { |
3338 | 0 | // @@protoc_insertion_point(field_get:test.RecursiveMessage.data) |
3339 | 0 | return _internal_data(); |
3340 | 0 | } |
3341 | | template <typename ArgT0, typename... ArgT> |
3342 | | inline PROTOBUF_ALWAYS_INLINE |
3343 | | void RecursiveMessage::set_data(ArgT0&& arg0, ArgT... args) { |
3344 | | _impl_._has_bits_[0] |= 0x00000001u; |
3345 | | _impl_.data_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
3346 | | // @@protoc_insertion_point(field_set:test.RecursiveMessage.data) |
3347 | | } |
3348 | 0 | inline std::string* RecursiveMessage::mutable_data() { |
3349 | 0 | std::string* _s = _internal_mutable_data(); |
3350 | 0 | // @@protoc_insertion_point(field_mutable:test.RecursiveMessage.data) |
3351 | 0 | return _s; |
3352 | 0 | } |
3353 | 0 | inline const std::string& RecursiveMessage::_internal_data() const { |
3354 | 0 | return _impl_.data_.Get(); |
3355 | 0 | } |
3356 | 0 | inline void RecursiveMessage::_internal_set_data(const std::string& value) { |
3357 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3358 | 0 | _impl_.data_.Set(value, GetArenaForAllocation()); |
3359 | 0 | } |
3360 | 0 | inline std::string* RecursiveMessage::_internal_mutable_data() { |
3361 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3362 | 0 | return _impl_.data_.Mutable(GetArenaForAllocation()); |
3363 | 0 | } |
3364 | 0 | inline std::string* RecursiveMessage::release_data() { |
3365 | 0 | // @@protoc_insertion_point(field_release:test.RecursiveMessage.data) |
3366 | 0 | if (!_internal_has_data()) { |
3367 | 0 | return nullptr; |
3368 | 0 | } |
3369 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3370 | 0 | auto* p = _impl_.data_.Release(); |
3371 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3372 | 0 | if (_impl_.data_.IsDefault()) { |
3373 | 0 | _impl_.data_.Set("", GetArenaForAllocation()); |
3374 | 0 | } |
3375 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3376 | 0 | return p; |
3377 | 0 | } |
3378 | 0 | inline void RecursiveMessage::set_allocated_data(std::string* data) { |
3379 | 0 | if (data != nullptr) { |
3380 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
3381 | 0 | } else { |
3382 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
3383 | 0 | } |
3384 | 0 | _impl_.data_.SetAllocated(data, GetArenaForAllocation()); |
3385 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3386 | 0 | if (_impl_.data_.IsDefault()) { |
3387 | 0 | _impl_.data_.Set("", GetArenaForAllocation()); |
3388 | 0 | } |
3389 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
3390 | 0 | // @@protoc_insertion_point(field_set_allocated:test.RecursiveMessage.data) |
3391 | 0 | } |
3392 | | |
3393 | | #ifdef __GNUC__ |
3394 | | #pragma GCC diagnostic pop |
3395 | | #endif // __GNUC__ |
3396 | | // ------------------------------------------------------------------- |
3397 | | |
3398 | | // ------------------------------------------------------------------- |
3399 | | |
3400 | | // ------------------------------------------------------------------- |
3401 | | |
3402 | | // ------------------------------------------------------------------- |
3403 | | |
3404 | | // ------------------------------------------------------------------- |
3405 | | |
3406 | | // ------------------------------------------------------------------- |
3407 | | |
3408 | | // ------------------------------------------------------------------- |
3409 | | |
3410 | | // ------------------------------------------------------------------- |
3411 | | |
3412 | | // ------------------------------------------------------------------- |
3413 | | |
3414 | | // ------------------------------------------------------------------- |
3415 | | |
3416 | | |
3417 | | // @@protoc_insertion_point(namespace_scope) |
3418 | | |
3419 | | } // namespace test |
3420 | | |
3421 | | PROTOBUF_NAMESPACE_OPEN |
3422 | | |
3423 | | template <> struct is_proto_enum< ::test::State0> : ::std::true_type {}; |
3424 | | template <> |
3425 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::test::State0>() { |
3426 | 0 | return ::test::State0_descriptor(); |
3427 | 0 | } |
3428 | | template <> struct is_proto_enum< ::test::State1> : ::std::true_type {}; |
3429 | | template <> |
3430 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::test::State1>() { |
3431 | 0 | return ::test::State1_descriptor(); |
3432 | 0 | } |
3433 | | |
3434 | | PROTOBUF_NAMESPACE_CLOSE |
3435 | | |
3436 | | // @@protoc_insertion_point(global_scope) |
3437 | | |
3438 | | #include <google/protobuf/port_undef.inc> |
3439 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_echo_2eproto |