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