/src/brpc/build/test/v3.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: v3.proto |
3 | | |
4 | | #ifndef PROTOBUF_INCLUDED_v3_2eproto |
5 | | #define PROTOBUF_INCLUDED_v3_2eproto |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3006001 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/inlined_string_field.h> |
28 | | #include <google/protobuf/metadata.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/service.h> |
33 | | #include <google/protobuf/unknown_field_set.h> |
34 | | // @@protoc_insertion_point(includes) |
35 | | #define PROTOBUF_INTERNAL_EXPORT_protobuf_v3_2eproto |
36 | | |
37 | | namespace protobuf_v3_2eproto { |
38 | | // Internal implementation detail -- do not use these members. |
39 | | struct TableStruct { |
40 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
41 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
42 | | static const ::google::protobuf::internal::ParseTable schema[2]; |
43 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
44 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
45 | | static const ::google::protobuf::uint32 offsets[]; |
46 | | }; |
47 | | void AddDescriptors(); |
48 | | } // namespace protobuf_v3_2eproto |
49 | | namespace v3 { |
50 | | class EchoRequest; |
51 | | class EchoRequestDefaultTypeInternal; |
52 | | extern EchoRequestDefaultTypeInternal _EchoRequest_default_instance_; |
53 | | class EchoResponse; |
54 | | class EchoResponseDefaultTypeInternal; |
55 | | extern EchoResponseDefaultTypeInternal _EchoResponse_default_instance_; |
56 | | } // namespace v3 |
57 | | namespace google { |
58 | | namespace protobuf { |
59 | | template<> ::v3::EchoRequest* Arena::CreateMaybeMessage<::v3::EchoRequest>(Arena*); |
60 | | template<> ::v3::EchoResponse* Arena::CreateMaybeMessage<::v3::EchoResponse>(Arena*); |
61 | | } // namespace protobuf |
62 | | } // namespace google |
63 | | namespace v3 { |
64 | | |
65 | | // =================================================================== |
66 | | |
67 | | class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v3.EchoRequest) */ { |
68 | | public: |
69 | | EchoRequest(); |
70 | | virtual ~EchoRequest(); |
71 | | |
72 | | EchoRequest(const EchoRequest& from); |
73 | | |
74 | 0 | inline EchoRequest& operator=(const EchoRequest& from) { |
75 | 0 | CopyFrom(from); |
76 | 0 | return *this; |
77 | 0 | } |
78 | | #if LANG_CXX11 |
79 | | EchoRequest(EchoRequest&& from) noexcept |
80 | 0 | : EchoRequest() { |
81 | 0 | *this = ::std::move(from); |
82 | 0 | } |
83 | | |
84 | 0 | inline EchoRequest& operator=(EchoRequest&& from) noexcept { |
85 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
86 | 0 | if (this != &from) InternalSwap(&from); |
87 | 0 | } else { |
88 | 0 | CopyFrom(from); |
89 | 0 | } |
90 | 0 | return *this; |
91 | 0 | } |
92 | | #endif |
93 | 0 | inline ::google::protobuf::Arena* GetArena() const final { |
94 | 0 | return GetArenaNoVirtual(); |
95 | 0 | } |
96 | 0 | inline void* GetMaybeArenaPointer() const final { |
97 | 0 | return MaybeArenaPtr(); |
98 | 0 | } |
99 | | static const ::google::protobuf::Descriptor* descriptor(); |
100 | | static const EchoRequest& default_instance(); |
101 | | |
102 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
103 | 0 | static inline const EchoRequest* internal_default_instance() { |
104 | 0 | return reinterpret_cast<const EchoRequest*>( |
105 | 0 | &_EchoRequest_default_instance_); |
106 | 0 | } |
107 | | static constexpr int kIndexInFileMessages = |
108 | | 0; |
109 | | |
110 | | void UnsafeArenaSwap(EchoRequest* other); |
111 | | void Swap(EchoRequest* other); |
112 | 0 | friend void swap(EchoRequest& a, EchoRequest& b) { |
113 | 0 | a.Swap(&b); |
114 | 0 | } |
115 | | |
116 | | // implements Message ---------------------------------------------- |
117 | | |
118 | 0 | inline EchoRequest* New() const final { |
119 | 0 | return CreateMaybeMessage<EchoRequest>(NULL); |
120 | 0 | } |
121 | | |
122 | 0 | EchoRequest* New(::google::protobuf::Arena* arena) const final { |
123 | 0 | return CreateMaybeMessage<EchoRequest>(arena); |
124 | 0 | } |
125 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
126 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
127 | | void CopyFrom(const EchoRequest& from); |
128 | | void MergeFrom(const EchoRequest& from); |
129 | | void Clear() final; |
130 | | bool IsInitialized() const final; |
131 | | |
132 | | size_t ByteSizeLong() const final; |
133 | | bool MergePartialFromCodedStream( |
134 | | ::google::protobuf::io::CodedInputStream* input) final; |
135 | | void SerializeWithCachedSizes( |
136 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
137 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
138 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
139 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
140 | | |
141 | | private: |
142 | | void SharedCtor(); |
143 | | void SharedDtor(); |
144 | | void SetCachedSize(int size) const final; |
145 | | void InternalSwap(EchoRequest* other); |
146 | | protected: |
147 | | explicit EchoRequest(::google::protobuf::Arena* arena); |
148 | | private: |
149 | | static void ArenaDtor(void* object); |
150 | | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
151 | | private: |
152 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
153 | 0 | return _internal_metadata_.arena(); |
154 | 0 | } |
155 | 0 | inline void* MaybeArenaPtr() const { |
156 | 0 | return _internal_metadata_.raw_arena_ptr(); |
157 | 0 | } |
158 | | public: |
159 | | |
160 | | ::google::protobuf::Metadata GetMetadata() const final; |
161 | | |
162 | | // nested types ---------------------------------------------------- |
163 | | |
164 | | // accessors ------------------------------------------------------- |
165 | | |
166 | | // string message = 1; |
167 | | void clear_message(); |
168 | | static const int kMessageFieldNumber = 1; |
169 | | const ::std::string& message() const; |
170 | | void set_message(const ::std::string& value); |
171 | | #if LANG_CXX11 |
172 | | void set_message(::std::string&& value); |
173 | | #endif |
174 | | void set_message(const char* value); |
175 | | void set_message(const char* value, size_t size); |
176 | | ::std::string* mutable_message(); |
177 | | ::std::string* release_message(); |
178 | | void set_allocated_message(::std::string* message); |
179 | | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
180 | | " string fields are deprecated and will be removed in a" |
181 | | " future release.") |
182 | | ::std::string* unsafe_arena_release_message(); |
183 | | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
184 | | " string fields are deprecated and will be removed in a" |
185 | | " future release.") |
186 | | void unsafe_arena_set_allocated_message( |
187 | | ::std::string* message); |
188 | | |
189 | | // @@protoc_insertion_point(class_scope:v3.EchoRequest) |
190 | | private: |
191 | | |
192 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
193 | | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
194 | | typedef void InternalArenaConstructable_; |
195 | | typedef void DestructorSkippable_; |
196 | | ::google::protobuf::internal::ArenaStringPtr message_; |
197 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
198 | | friend struct ::protobuf_v3_2eproto::TableStruct; |
199 | | }; |
200 | | // ------------------------------------------------------------------- |
201 | | |
202 | | class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v3.EchoResponse) */ { |
203 | | public: |
204 | | EchoResponse(); |
205 | | virtual ~EchoResponse(); |
206 | | |
207 | | EchoResponse(const EchoResponse& from); |
208 | | |
209 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
210 | 0 | CopyFrom(from); |
211 | 0 | return *this; |
212 | 0 | } |
213 | | #if LANG_CXX11 |
214 | | EchoResponse(EchoResponse&& from) noexcept |
215 | 0 | : EchoResponse() { |
216 | 0 | *this = ::std::move(from); |
217 | 0 | } |
218 | | |
219 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
220 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
221 | 0 | if (this != &from) InternalSwap(&from); |
222 | 0 | } else { |
223 | 0 | CopyFrom(from); |
224 | 0 | } |
225 | 0 | return *this; |
226 | 0 | } |
227 | | #endif |
228 | 0 | inline ::google::protobuf::Arena* GetArena() const final { |
229 | 0 | return GetArenaNoVirtual(); |
230 | 0 | } |
231 | 0 | inline void* GetMaybeArenaPointer() const final { |
232 | 0 | return MaybeArenaPtr(); |
233 | 0 | } |
234 | | static const ::google::protobuf::Descriptor* descriptor(); |
235 | | static const EchoResponse& default_instance(); |
236 | | |
237 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
238 | 0 | static inline const EchoResponse* internal_default_instance() { |
239 | 0 | return reinterpret_cast<const EchoResponse*>( |
240 | 0 | &_EchoResponse_default_instance_); |
241 | 0 | } |
242 | | static constexpr int kIndexInFileMessages = |
243 | | 1; |
244 | | |
245 | | void UnsafeArenaSwap(EchoResponse* other); |
246 | | void Swap(EchoResponse* other); |
247 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
248 | 0 | a.Swap(&b); |
249 | 0 | } |
250 | | |
251 | | // implements Message ---------------------------------------------- |
252 | | |
253 | 0 | inline EchoResponse* New() const final { |
254 | 0 | return CreateMaybeMessage<EchoResponse>(NULL); |
255 | 0 | } |
256 | | |
257 | 0 | EchoResponse* New(::google::protobuf::Arena* arena) const final { |
258 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
259 | 0 | } |
260 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
261 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
262 | | void CopyFrom(const EchoResponse& from); |
263 | | void MergeFrom(const EchoResponse& from); |
264 | | void Clear() final; |
265 | | bool IsInitialized() const final; |
266 | | |
267 | | size_t ByteSizeLong() const final; |
268 | | bool MergePartialFromCodedStream( |
269 | | ::google::protobuf::io::CodedInputStream* input) final; |
270 | | void SerializeWithCachedSizes( |
271 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
272 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
273 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
274 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
275 | | |
276 | | private: |
277 | | void SharedCtor(); |
278 | | void SharedDtor(); |
279 | | void SetCachedSize(int size) const final; |
280 | | void InternalSwap(EchoResponse* other); |
281 | | protected: |
282 | | explicit EchoResponse(::google::protobuf::Arena* arena); |
283 | | private: |
284 | | static void ArenaDtor(void* object); |
285 | | inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
286 | | private: |
287 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
288 | 0 | return _internal_metadata_.arena(); |
289 | 0 | } |
290 | 0 | inline void* MaybeArenaPtr() const { |
291 | 0 | return _internal_metadata_.raw_arena_ptr(); |
292 | 0 | } |
293 | | public: |
294 | | |
295 | | ::google::protobuf::Metadata GetMetadata() const final; |
296 | | |
297 | | // nested types ---------------------------------------------------- |
298 | | |
299 | | // accessors ------------------------------------------------------- |
300 | | |
301 | | // string message = 1; |
302 | | void clear_message(); |
303 | | static const int kMessageFieldNumber = 1; |
304 | | const ::std::string& message() const; |
305 | | void set_message(const ::std::string& value); |
306 | | #if LANG_CXX11 |
307 | | void set_message(::std::string&& value); |
308 | | #endif |
309 | | void set_message(const char* value); |
310 | | void set_message(const char* value, size_t size); |
311 | | ::std::string* mutable_message(); |
312 | | ::std::string* release_message(); |
313 | | void set_allocated_message(::std::string* message); |
314 | | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
315 | | " string fields are deprecated and will be removed in a" |
316 | | " future release.") |
317 | | ::std::string* unsafe_arena_release_message(); |
318 | | PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
319 | | " string fields are deprecated and will be removed in a" |
320 | | " future release.") |
321 | | void unsafe_arena_set_allocated_message( |
322 | | ::std::string* message); |
323 | | |
324 | | // @@protoc_insertion_point(class_scope:v3.EchoResponse) |
325 | | private: |
326 | | |
327 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
328 | | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
329 | | typedef void InternalArenaConstructable_; |
330 | | typedef void DestructorSkippable_; |
331 | | ::google::protobuf::internal::ArenaStringPtr message_; |
332 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
333 | | friend struct ::protobuf_v3_2eproto::TableStruct; |
334 | | }; |
335 | | // =================================================================== |
336 | | |
337 | | class EchoService_Stub; |
338 | | |
339 | | class EchoService : public ::google::protobuf::Service { |
340 | | protected: |
341 | | // This class should be treated as an abstract interface. |
342 | 0 | inline EchoService() {}; |
343 | | public: |
344 | | virtual ~EchoService(); |
345 | | |
346 | | typedef EchoService_Stub Stub; |
347 | | |
348 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
349 | | |
350 | | virtual void Echo(::google::protobuf::RpcController* controller, |
351 | | const ::v3::EchoRequest* request, |
352 | | ::v3::EchoResponse* response, |
353 | | ::google::protobuf::Closure* done); |
354 | | |
355 | | // implements Service ---------------------------------------------- |
356 | | |
357 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
358 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
359 | | ::google::protobuf::RpcController* controller, |
360 | | const ::google::protobuf::Message* request, |
361 | | ::google::protobuf::Message* response, |
362 | | ::google::protobuf::Closure* done); |
363 | | const ::google::protobuf::Message& GetRequestPrototype( |
364 | | const ::google::protobuf::MethodDescriptor* method) const; |
365 | | const ::google::protobuf::Message& GetResponsePrototype( |
366 | | const ::google::protobuf::MethodDescriptor* method) const; |
367 | | |
368 | | private: |
369 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
370 | | }; |
371 | | |
372 | | class EchoService_Stub : public EchoService { |
373 | | public: |
374 | | EchoService_Stub(::google::protobuf::RpcChannel* channel); |
375 | | EchoService_Stub(::google::protobuf::RpcChannel* channel, |
376 | | ::google::protobuf::Service::ChannelOwnership ownership); |
377 | | ~EchoService_Stub(); |
378 | | |
379 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
380 | | |
381 | | // implements EchoService ------------------------------------------ |
382 | | |
383 | | void Echo(::google::protobuf::RpcController* controller, |
384 | | const ::v3::EchoRequest* request, |
385 | | ::v3::EchoResponse* response, |
386 | | ::google::protobuf::Closure* done); |
387 | | private: |
388 | | ::google::protobuf::RpcChannel* channel_; |
389 | | bool owns_channel_; |
390 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
391 | | }; |
392 | | |
393 | | |
394 | | // =================================================================== |
395 | | |
396 | | |
397 | | // =================================================================== |
398 | | |
399 | | #ifdef __GNUC__ |
400 | | #pragma GCC diagnostic push |
401 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
402 | | #endif // __GNUC__ |
403 | | // EchoRequest |
404 | | |
405 | | // string message = 1; |
406 | 0 | inline void EchoRequest::clear_message() { |
407 | 0 | message_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
408 | 0 | } |
409 | 0 | inline const ::std::string& EchoRequest::message() const { |
410 | | // @@protoc_insertion_point(field_get:v3.EchoRequest.message) |
411 | 0 | return message_.Get(); |
412 | 0 | } |
413 | 0 | inline void EchoRequest::set_message(const ::std::string& value) { |
414 | | |
415 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
416 | | // @@protoc_insertion_point(field_set:v3.EchoRequest.message) |
417 | 0 | } |
418 | | #if LANG_CXX11 |
419 | 0 | inline void EchoRequest::set_message(::std::string&& value) { |
420 | 0 | |
421 | 0 | message_.Set( |
422 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
423 | 0 | // @@protoc_insertion_point(field_set_rvalue:v3.EchoRequest.message) |
424 | 0 | } |
425 | | #endif |
426 | 0 | inline void EchoRequest::set_message(const char* value) { |
427 | 0 | GOOGLE_DCHECK(value != NULL); |
428 | 0 | |
429 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
430 | 0 | GetArenaNoVirtual()); |
431 | 0 | // @@protoc_insertion_point(field_set_char:v3.EchoRequest.message) |
432 | 0 | } |
433 | | inline void EchoRequest::set_message(const char* value, |
434 | 0 | size_t size) { |
435 | 0 | |
436 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
437 | 0 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
438 | 0 | // @@protoc_insertion_point(field_set_pointer:v3.EchoRequest.message) |
439 | 0 | } |
440 | 0 | inline ::std::string* EchoRequest::mutable_message() { |
441 | | |
442 | | // @@protoc_insertion_point(field_mutable:v3.EchoRequest.message) |
443 | 0 | return message_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
444 | 0 | } |
445 | 0 | inline ::std::string* EchoRequest::release_message() { |
446 | 0 | // @@protoc_insertion_point(field_release:v3.EchoRequest.message) |
447 | 0 | |
448 | 0 | return message_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
449 | 0 | } |
450 | 0 | inline void EchoRequest::set_allocated_message(::std::string* message) { |
451 | 0 | if (message != NULL) { |
452 | 0 | |
453 | 0 | } else { |
454 | 0 | |
455 | 0 | } |
456 | 0 | message_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message, |
457 | 0 | GetArenaNoVirtual()); |
458 | 0 | // @@protoc_insertion_point(field_set_allocated:v3.EchoRequest.message) |
459 | 0 | } |
460 | 0 | inline ::std::string* EchoRequest::unsafe_arena_release_message() { |
461 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:v3.EchoRequest.message) |
462 | 0 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
463 | 0 | |
464 | 0 | return message_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
465 | 0 | GetArenaNoVirtual()); |
466 | 0 | } |
467 | | inline void EchoRequest::unsafe_arena_set_allocated_message( |
468 | 0 | ::std::string* message) { |
469 | 0 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
470 | 0 | if (message != NULL) { |
471 | 0 | |
472 | 0 | } else { |
473 | 0 | |
474 | 0 | } |
475 | 0 | message_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
476 | 0 | message, GetArenaNoVirtual()); |
477 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:v3.EchoRequest.message) |
478 | 0 | } |
479 | | |
480 | | // ------------------------------------------------------------------- |
481 | | |
482 | | // EchoResponse |
483 | | |
484 | | // string message = 1; |
485 | 0 | inline void EchoResponse::clear_message() { |
486 | 0 | message_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
487 | 0 | } |
488 | 0 | inline const ::std::string& EchoResponse::message() const { |
489 | | // @@protoc_insertion_point(field_get:v3.EchoResponse.message) |
490 | 0 | return message_.Get(); |
491 | 0 | } |
492 | 0 | inline void EchoResponse::set_message(const ::std::string& value) { |
493 | | |
494 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
495 | | // @@protoc_insertion_point(field_set:v3.EchoResponse.message) |
496 | 0 | } |
497 | | #if LANG_CXX11 |
498 | 0 | inline void EchoResponse::set_message(::std::string&& value) { |
499 | 0 | |
500 | 0 | message_.Set( |
501 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
502 | 0 | // @@protoc_insertion_point(field_set_rvalue:v3.EchoResponse.message) |
503 | 0 | } |
504 | | #endif |
505 | 0 | inline void EchoResponse::set_message(const char* value) { |
506 | 0 | GOOGLE_DCHECK(value != NULL); |
507 | 0 | |
508 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
509 | 0 | GetArenaNoVirtual()); |
510 | 0 | // @@protoc_insertion_point(field_set_char:v3.EchoResponse.message) |
511 | 0 | } |
512 | | inline void EchoResponse::set_message(const char* value, |
513 | 0 | size_t size) { |
514 | 0 | |
515 | 0 | message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
516 | 0 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
517 | 0 | // @@protoc_insertion_point(field_set_pointer:v3.EchoResponse.message) |
518 | 0 | } |
519 | 0 | inline ::std::string* EchoResponse::mutable_message() { |
520 | | |
521 | | // @@protoc_insertion_point(field_mutable:v3.EchoResponse.message) |
522 | 0 | return message_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
523 | 0 | } |
524 | 0 | inline ::std::string* EchoResponse::release_message() { |
525 | 0 | // @@protoc_insertion_point(field_release:v3.EchoResponse.message) |
526 | 0 | |
527 | 0 | return message_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
528 | 0 | } |
529 | 0 | inline void EchoResponse::set_allocated_message(::std::string* message) { |
530 | 0 | if (message != NULL) { |
531 | 0 | |
532 | 0 | } else { |
533 | 0 | |
534 | 0 | } |
535 | 0 | message_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message, |
536 | 0 | GetArenaNoVirtual()); |
537 | 0 | // @@protoc_insertion_point(field_set_allocated:v3.EchoResponse.message) |
538 | 0 | } |
539 | 0 | inline ::std::string* EchoResponse::unsafe_arena_release_message() { |
540 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:v3.EchoResponse.message) |
541 | 0 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
542 | 0 | |
543 | 0 | return message_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
544 | 0 | GetArenaNoVirtual()); |
545 | 0 | } |
546 | | inline void EchoResponse::unsafe_arena_set_allocated_message( |
547 | 0 | ::std::string* message) { |
548 | 0 | GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
549 | 0 | if (message != NULL) { |
550 | 0 | |
551 | 0 | } else { |
552 | 0 | |
553 | 0 | } |
554 | 0 | message_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
555 | 0 | message, GetArenaNoVirtual()); |
556 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:v3.EchoResponse.message) |
557 | 0 | } |
558 | | |
559 | | #ifdef __GNUC__ |
560 | | #pragma GCC diagnostic pop |
561 | | #endif // __GNUC__ |
562 | | // ------------------------------------------------------------------- |
563 | | |
564 | | |
565 | | // @@protoc_insertion_point(namespace_scope) |
566 | | |
567 | | } // namespace v3 |
568 | | |
569 | | // @@protoc_insertion_point(global_scope) |
570 | | |
571 | | #endif // PROTOBUF_INCLUDED_v3_2eproto |