/src/brpc/build/test/v3.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: v3.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_v3_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_v3_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_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/service.h> |
33 | | #include <google/protobuf/unknown_field_set.h> |
34 | | // @@protoc_insertion_point(includes) |
35 | | #include <google/protobuf/port_def.inc> |
36 | | #define PROTOBUF_INTERNAL_EXPORT_v3_2eproto |
37 | | PROTOBUF_NAMESPACE_OPEN |
38 | | namespace internal { |
39 | | class AnyMetadata; |
40 | | } // namespace internal |
41 | | PROTOBUF_NAMESPACE_CLOSE |
42 | | |
43 | | // Internal implementation detail -- do not use these members. |
44 | | struct TableStruct_v3_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_v3_2eproto; |
48 | | namespace v3 { |
49 | | class EchoRequest; |
50 | | struct EchoRequestDefaultTypeInternal; |
51 | | extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
52 | | class EchoResponse; |
53 | | struct EchoResponseDefaultTypeInternal; |
54 | | extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
55 | | } // namespace v3 |
56 | | PROTOBUF_NAMESPACE_OPEN |
57 | | template<> ::v3::EchoRequest* Arena::CreateMaybeMessage<::v3::EchoRequest>(Arena*); |
58 | | template<> ::v3::EchoResponse* Arena::CreateMaybeMessage<::v3::EchoResponse>(Arena*); |
59 | | PROTOBUF_NAMESPACE_CLOSE |
60 | | namespace v3 { |
61 | | |
62 | | // =================================================================== |
63 | | |
64 | | class EchoRequest final : |
65 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v3.EchoRequest) */ { |
66 | | public: |
67 | 0 | inline EchoRequest() : EchoRequest(nullptr) {} |
68 | | ~EchoRequest() override; |
69 | | explicit PROTOBUF_CONSTEXPR EchoRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
70 | | |
71 | | EchoRequest(const EchoRequest& from); |
72 | | EchoRequest(EchoRequest&& from) noexcept |
73 | 0 | : EchoRequest() { |
74 | 0 | *this = ::std::move(from); |
75 | 0 | } |
76 | | |
77 | 0 | inline EchoRequest& operator=(const EchoRequest& from) { |
78 | 0 | CopyFrom(from); |
79 | 0 | return *this; |
80 | 0 | } |
81 | 0 | inline EchoRequest& operator=(EchoRequest&& from) noexcept { |
82 | 0 | if (this == &from) return *this; |
83 | 0 | if (GetOwningArena() == from.GetOwningArena() |
84 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
85 | 0 | && GetOwningArena() != nullptr |
86 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
87 | 0 | ) { |
88 | 0 | InternalSwap(&from); |
89 | 0 | } else { |
90 | 0 | CopyFrom(from); |
91 | 0 | } |
92 | 0 | return *this; |
93 | 0 | } |
94 | | |
95 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
96 | 0 | return GetDescriptor(); |
97 | 0 | } |
98 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
99 | 0 | return default_instance().GetMetadata().descriptor; |
100 | 0 | } |
101 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
102 | 0 | return default_instance().GetMetadata().reflection; |
103 | 0 | } |
104 | 0 | static const EchoRequest& default_instance() { |
105 | 0 | return *internal_default_instance(); |
106 | 0 | } |
107 | 0 | static inline const EchoRequest* internal_default_instance() { |
108 | 0 | return reinterpret_cast<const EchoRequest*>( |
109 | 0 | &_EchoRequest_default_instance_); |
110 | 0 | } |
111 | | static constexpr int kIndexInFileMessages = |
112 | | 0; |
113 | | |
114 | 0 | friend void swap(EchoRequest& a, EchoRequest& b) { |
115 | 0 | a.Swap(&b); |
116 | 0 | } |
117 | 0 | inline void Swap(EchoRequest* other) { |
118 | 0 | if (other == this) return; |
119 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
120 | 0 | if (GetOwningArena() != nullptr && |
121 | 0 | GetOwningArena() == other->GetOwningArena()) { |
122 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
123 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
124 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
125 | 0 | InternalSwap(other); |
126 | 0 | } else { |
127 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
128 | 0 | } |
129 | 0 | } |
130 | 0 | void UnsafeArenaSwap(EchoRequest* other) { |
131 | 0 | if (other == this) return; |
132 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
133 | 0 | InternalSwap(other); |
134 | 0 | } |
135 | | |
136 | | // implements Message ---------------------------------------------- |
137 | | |
138 | 0 | EchoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
139 | 0 | return CreateMaybeMessage<EchoRequest>(arena); |
140 | 0 | } |
141 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
142 | | void CopyFrom(const EchoRequest& from); |
143 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
144 | 0 | void MergeFrom( const EchoRequest& from) { |
145 | 0 | EchoRequest::MergeImpl(*this, from); |
146 | 0 | } |
147 | | private: |
148 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
149 | | public: |
150 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
151 | | bool IsInitialized() const final; |
152 | | |
153 | | size_t ByteSizeLong() const final; |
154 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
155 | | uint8_t* _InternalSerialize( |
156 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
157 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
158 | | |
159 | | private: |
160 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
161 | | void SharedDtor(); |
162 | | void SetCachedSize(int size) const final; |
163 | | void InternalSwap(EchoRequest* other); |
164 | | |
165 | | private: |
166 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
167 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
168 | 0 | return "v3.EchoRequest"; |
169 | 0 | } |
170 | | protected: |
171 | | explicit EchoRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
172 | | bool is_message_owned = false); |
173 | | public: |
174 | | |
175 | | static const ClassData _class_data_; |
176 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
177 | | |
178 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
179 | | |
180 | | // nested types ---------------------------------------------------- |
181 | | |
182 | | // accessors ------------------------------------------------------- |
183 | | |
184 | | enum : int { |
185 | | kMessageFieldNumber = 1, |
186 | | }; |
187 | | // string message = 1; |
188 | | void clear_message(); |
189 | | const std::string& message() const; |
190 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
191 | | void set_message(ArgT0&& arg0, ArgT... args); |
192 | | std::string* mutable_message(); |
193 | | PROTOBUF_NODISCARD std::string* release_message(); |
194 | | void set_allocated_message(std::string* message); |
195 | | private: |
196 | | const std::string& _internal_message() const; |
197 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); |
198 | | std::string* _internal_mutable_message(); |
199 | | public: |
200 | | |
201 | | // @@protoc_insertion_point(class_scope:v3.EchoRequest) |
202 | | private: |
203 | | class _Internal; |
204 | | |
205 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
206 | | typedef void InternalArenaConstructable_; |
207 | | typedef void DestructorSkippable_; |
208 | | struct Impl_ { |
209 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; |
210 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
211 | | }; |
212 | | union { Impl_ _impl_; }; |
213 | | friend struct ::TableStruct_v3_2eproto; |
214 | | }; |
215 | | // ------------------------------------------------------------------- |
216 | | |
217 | | class EchoResponse final : |
218 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:v3.EchoResponse) */ { |
219 | | public: |
220 | 0 | inline EchoResponse() : EchoResponse(nullptr) {} |
221 | | ~EchoResponse() override; |
222 | | explicit PROTOBUF_CONSTEXPR EchoResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
223 | | |
224 | | EchoResponse(const EchoResponse& from); |
225 | | EchoResponse(EchoResponse&& from) noexcept |
226 | 0 | : EchoResponse() { |
227 | 0 | *this = ::std::move(from); |
228 | 0 | } |
229 | | |
230 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
231 | 0 | CopyFrom(from); |
232 | 0 | return *this; |
233 | 0 | } |
234 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
235 | 0 | if (this == &from) return *this; |
236 | 0 | if (GetOwningArena() == from.GetOwningArena() |
237 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
238 | 0 | && GetOwningArena() != nullptr |
239 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
240 | 0 | ) { |
241 | 0 | InternalSwap(&from); |
242 | 0 | } else { |
243 | 0 | CopyFrom(from); |
244 | 0 | } |
245 | 0 | return *this; |
246 | 0 | } |
247 | | |
248 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
249 | 0 | return GetDescriptor(); |
250 | 0 | } |
251 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
252 | 0 | return default_instance().GetMetadata().descriptor; |
253 | 0 | } |
254 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
255 | 0 | return default_instance().GetMetadata().reflection; |
256 | 0 | } |
257 | 0 | static const EchoResponse& default_instance() { |
258 | 0 | return *internal_default_instance(); |
259 | 0 | } |
260 | 0 | static inline const EchoResponse* internal_default_instance() { |
261 | 0 | return reinterpret_cast<const EchoResponse*>( |
262 | 0 | &_EchoResponse_default_instance_); |
263 | 0 | } |
264 | | static constexpr int kIndexInFileMessages = |
265 | | 1; |
266 | | |
267 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
268 | 0 | a.Swap(&b); |
269 | 0 | } |
270 | 0 | inline void Swap(EchoResponse* other) { |
271 | 0 | if (other == this) return; |
272 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
273 | 0 | if (GetOwningArena() != nullptr && |
274 | 0 | GetOwningArena() == other->GetOwningArena()) { |
275 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
276 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
277 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
278 | 0 | InternalSwap(other); |
279 | 0 | } else { |
280 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
281 | 0 | } |
282 | 0 | } |
283 | 0 | void UnsafeArenaSwap(EchoResponse* other) { |
284 | 0 | if (other == this) return; |
285 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
286 | 0 | InternalSwap(other); |
287 | 0 | } |
288 | | |
289 | | // implements Message ---------------------------------------------- |
290 | | |
291 | 0 | EchoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
292 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
293 | 0 | } |
294 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
295 | | void CopyFrom(const EchoResponse& from); |
296 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
297 | 0 | void MergeFrom( const EchoResponse& from) { |
298 | 0 | EchoResponse::MergeImpl(*this, from); |
299 | 0 | } |
300 | | private: |
301 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
302 | | public: |
303 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
304 | | bool IsInitialized() const final; |
305 | | |
306 | | size_t ByteSizeLong() const final; |
307 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
308 | | uint8_t* _InternalSerialize( |
309 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
310 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
311 | | |
312 | | private: |
313 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
314 | | void SharedDtor(); |
315 | | void SetCachedSize(int size) const final; |
316 | | void InternalSwap(EchoResponse* other); |
317 | | |
318 | | private: |
319 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
320 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
321 | 0 | return "v3.EchoResponse"; |
322 | 0 | } |
323 | | protected: |
324 | | explicit EchoResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
325 | | bool is_message_owned = false); |
326 | | public: |
327 | | |
328 | | static const ClassData _class_data_; |
329 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
330 | | |
331 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
332 | | |
333 | | // nested types ---------------------------------------------------- |
334 | | |
335 | | // accessors ------------------------------------------------------- |
336 | | |
337 | | enum : int { |
338 | | kMessageFieldNumber = 1, |
339 | | }; |
340 | | // string message = 1; |
341 | | void clear_message(); |
342 | | const std::string& message() const; |
343 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
344 | | void set_message(ArgT0&& arg0, ArgT... args); |
345 | | std::string* mutable_message(); |
346 | | PROTOBUF_NODISCARD std::string* release_message(); |
347 | | void set_allocated_message(std::string* message); |
348 | | private: |
349 | | const std::string& _internal_message() const; |
350 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); |
351 | | std::string* _internal_mutable_message(); |
352 | | public: |
353 | | |
354 | | // @@protoc_insertion_point(class_scope:v3.EchoResponse) |
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::ArenaStringPtr message_; |
363 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
364 | | }; |
365 | | union { Impl_ _impl_; }; |
366 | | friend struct ::TableStruct_v3_2eproto; |
367 | | }; |
368 | | // =================================================================== |
369 | | |
370 | | class EchoService_Stub; |
371 | | |
372 | | class EchoService : public ::PROTOBUF_NAMESPACE_ID::Service { |
373 | | protected: |
374 | | // This class should be treated as an abstract interface. |
375 | 0 | inline EchoService() {}; |
376 | | public: |
377 | | virtual ~EchoService(); |
378 | | |
379 | | typedef EchoService_Stub Stub; |
380 | | |
381 | | static const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* descriptor(); |
382 | | |
383 | | virtual void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
384 | | const ::v3::EchoRequest* request, |
385 | | ::v3::EchoResponse* response, |
386 | | ::google::protobuf::Closure* done); |
387 | | |
388 | | // implements Service ---------------------------------------------- |
389 | | |
390 | | const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor* GetDescriptor(); |
391 | | void CallMethod(const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method, |
392 | | ::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
393 | | const ::PROTOBUF_NAMESPACE_ID::Message* request, |
394 | | ::PROTOBUF_NAMESPACE_ID::Message* response, |
395 | | ::google::protobuf::Closure* done); |
396 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetRequestPrototype( |
397 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
398 | | const ::PROTOBUF_NAMESPACE_ID::Message& GetResponsePrototype( |
399 | | const ::PROTOBUF_NAMESPACE_ID::MethodDescriptor* method) const; |
400 | | |
401 | | private: |
402 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
403 | | }; |
404 | | |
405 | | class EchoService_Stub : public EchoService { |
406 | | public: |
407 | | EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel); |
408 | | EchoService_Stub(::PROTOBUF_NAMESPACE_ID::RpcChannel* channel, |
409 | | ::PROTOBUF_NAMESPACE_ID::Service::ChannelOwnership ownership); |
410 | | ~EchoService_Stub(); |
411 | | |
412 | 0 | inline ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel() { return channel_; } |
413 | | |
414 | | // implements EchoService ------------------------------------------ |
415 | | |
416 | | void Echo(::PROTOBUF_NAMESPACE_ID::RpcController* controller, |
417 | | const ::v3::EchoRequest* request, |
418 | | ::v3::EchoResponse* response, |
419 | | ::google::protobuf::Closure* done); |
420 | | private: |
421 | | ::PROTOBUF_NAMESPACE_ID::RpcChannel* channel_; |
422 | | bool owns_channel_; |
423 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
424 | | }; |
425 | | |
426 | | |
427 | | // =================================================================== |
428 | | |
429 | | |
430 | | // =================================================================== |
431 | | |
432 | | #ifdef __GNUC__ |
433 | | #pragma GCC diagnostic push |
434 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
435 | | #endif // __GNUC__ |
436 | | // EchoRequest |
437 | | |
438 | | // string message = 1; |
439 | 0 | inline void EchoRequest::clear_message() { |
440 | 0 | _impl_.message_.ClearToEmpty(); |
441 | 0 | } |
442 | 0 | inline const std::string& EchoRequest::message() const { |
443 | 0 | // @@protoc_insertion_point(field_get:v3.EchoRequest.message) |
444 | 0 | return _internal_message(); |
445 | 0 | } |
446 | | template <typename ArgT0, typename... ArgT> |
447 | | inline PROTOBUF_ALWAYS_INLINE |
448 | | void EchoRequest::set_message(ArgT0&& arg0, ArgT... args) { |
449 | | |
450 | | _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
451 | | // @@protoc_insertion_point(field_set:v3.EchoRequest.message) |
452 | | } |
453 | 0 | inline std::string* EchoRequest::mutable_message() { |
454 | 0 | std::string* _s = _internal_mutable_message(); |
455 | 0 | // @@protoc_insertion_point(field_mutable:v3.EchoRequest.message) |
456 | 0 | return _s; |
457 | 0 | } |
458 | 0 | inline const std::string& EchoRequest::_internal_message() const { |
459 | 0 | return _impl_.message_.Get(); |
460 | 0 | } |
461 | 0 | inline void EchoRequest::_internal_set_message(const std::string& value) { |
462 | | |
463 | 0 | _impl_.message_.Set(value, GetArenaForAllocation()); |
464 | 0 | } |
465 | 0 | inline std::string* EchoRequest::_internal_mutable_message() { |
466 | | |
467 | 0 | return _impl_.message_.Mutable(GetArenaForAllocation()); |
468 | 0 | } |
469 | 0 | inline std::string* EchoRequest::release_message() { |
470 | 0 | // @@protoc_insertion_point(field_release:v3.EchoRequest.message) |
471 | 0 | return _impl_.message_.Release(); |
472 | 0 | } |
473 | 0 | inline void EchoRequest::set_allocated_message(std::string* message) { |
474 | 0 | if (message != nullptr) { |
475 | 0 | |
476 | 0 | } else { |
477 | 0 | |
478 | 0 | } |
479 | 0 | _impl_.message_.SetAllocated(message, GetArenaForAllocation()); |
480 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
481 | 0 | if (_impl_.message_.IsDefault()) { |
482 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
483 | 0 | } |
484 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
485 | 0 | // @@protoc_insertion_point(field_set_allocated:v3.EchoRequest.message) |
486 | 0 | } |
487 | | |
488 | | // ------------------------------------------------------------------- |
489 | | |
490 | | // EchoResponse |
491 | | |
492 | | // string message = 1; |
493 | 0 | inline void EchoResponse::clear_message() { |
494 | 0 | _impl_.message_.ClearToEmpty(); |
495 | 0 | } |
496 | 0 | inline const std::string& EchoResponse::message() const { |
497 | 0 | // @@protoc_insertion_point(field_get:v3.EchoResponse.message) |
498 | 0 | return _internal_message(); |
499 | 0 | } |
500 | | template <typename ArgT0, typename... ArgT> |
501 | | inline PROTOBUF_ALWAYS_INLINE |
502 | | void EchoResponse::set_message(ArgT0&& arg0, ArgT... args) { |
503 | | |
504 | | _impl_.message_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
505 | | // @@protoc_insertion_point(field_set:v3.EchoResponse.message) |
506 | | } |
507 | 0 | inline std::string* EchoResponse::mutable_message() { |
508 | 0 | std::string* _s = _internal_mutable_message(); |
509 | 0 | // @@protoc_insertion_point(field_mutable:v3.EchoResponse.message) |
510 | 0 | return _s; |
511 | 0 | } |
512 | 0 | inline const std::string& EchoResponse::_internal_message() const { |
513 | 0 | return _impl_.message_.Get(); |
514 | 0 | } |
515 | 0 | inline void EchoResponse::_internal_set_message(const std::string& value) { |
516 | | |
517 | 0 | _impl_.message_.Set(value, GetArenaForAllocation()); |
518 | 0 | } |
519 | 0 | inline std::string* EchoResponse::_internal_mutable_message() { |
520 | | |
521 | 0 | return _impl_.message_.Mutable(GetArenaForAllocation()); |
522 | 0 | } |
523 | 0 | inline std::string* EchoResponse::release_message() { |
524 | 0 | // @@protoc_insertion_point(field_release:v3.EchoResponse.message) |
525 | 0 | return _impl_.message_.Release(); |
526 | 0 | } |
527 | 0 | inline void EchoResponse::set_allocated_message(std::string* message) { |
528 | 0 | if (message != nullptr) { |
529 | 0 | |
530 | 0 | } else { |
531 | 0 | |
532 | 0 | } |
533 | 0 | _impl_.message_.SetAllocated(message, GetArenaForAllocation()); |
534 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
535 | 0 | if (_impl_.message_.IsDefault()) { |
536 | 0 | _impl_.message_.Set("", GetArenaForAllocation()); |
537 | 0 | } |
538 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
539 | 0 | // @@protoc_insertion_point(field_set_allocated:v3.EchoResponse.message) |
540 | 0 | } |
541 | | |
542 | | #ifdef __GNUC__ |
543 | | #pragma GCC diagnostic pop |
544 | | #endif // __GNUC__ |
545 | | // ------------------------------------------------------------------- |
546 | | |
547 | | |
548 | | // @@protoc_insertion_point(namespace_scope) |
549 | | |
550 | | } // namespace v3 |
551 | | |
552 | | // @@protoc_insertion_point(global_scope) |
553 | | |
554 | | #include <google/protobuf/port_undef.inc> |
555 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_v3_2eproto |