/src/brpc/build/test/v1.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: v1.proto |
3 | | |
4 | | #ifndef PROTOBUF_INCLUDED_v1_2eproto |
5 | | #define PROTOBUF_INCLUDED_v1_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_v1_2eproto |
36 | | |
37 | | namespace protobuf_v1_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_v1_2eproto |
49 | | namespace v1 { |
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 v1 |
57 | | namespace google { |
58 | | namespace protobuf { |
59 | | template<> ::v1::EchoRequest* Arena::CreateMaybeMessage<::v1::EchoRequest>(Arena*); |
60 | | template<> ::v1::EchoResponse* Arena::CreateMaybeMessage<::v1::EchoResponse>(Arena*); |
61 | | } // namespace protobuf |
62 | | } // namespace google |
63 | | namespace v1 { |
64 | | |
65 | | // =================================================================== |
66 | | |
67 | | class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.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 const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
94 | 0 | return _internal_metadata_.unknown_fields(); |
95 | 0 | } |
96 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
97 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
98 | 0 | } |
99 | | |
100 | | static const ::google::protobuf::Descriptor* descriptor(); |
101 | | static const EchoRequest& default_instance(); |
102 | | |
103 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
104 | 0 | static inline const EchoRequest* internal_default_instance() { |
105 | 0 | return reinterpret_cast<const EchoRequest*>( |
106 | 0 | &_EchoRequest_default_instance_); |
107 | 0 | } |
108 | | static constexpr int kIndexInFileMessages = |
109 | | 0; |
110 | | |
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 | | private: |
147 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
148 | 0 | return NULL; |
149 | 0 | } |
150 | 0 | inline void* MaybeArenaPtr() const { |
151 | 0 | return NULL; |
152 | 0 | } |
153 | | public: |
154 | | |
155 | | ::google::protobuf::Metadata GetMetadata() const final; |
156 | | |
157 | | // nested types ---------------------------------------------------- |
158 | | |
159 | | // accessors ------------------------------------------------------- |
160 | | |
161 | | // required string message = 1; |
162 | | bool has_message() const; |
163 | | void clear_message(); |
164 | | static const int kMessageFieldNumber = 1; |
165 | | const ::std::string& message() const; |
166 | | void set_message(const ::std::string& value); |
167 | | #if LANG_CXX11 |
168 | | void set_message(::std::string&& value); |
169 | | #endif |
170 | | void set_message(const char* value); |
171 | | void set_message(const char* value, size_t size); |
172 | | ::std::string* mutable_message(); |
173 | | ::std::string* release_message(); |
174 | | void set_allocated_message(::std::string* message); |
175 | | |
176 | | // @@protoc_insertion_point(class_scope:v1.EchoRequest) |
177 | | private: |
178 | | void set_has_message(); |
179 | | void clear_has_message(); |
180 | | |
181 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
182 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
183 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
184 | | ::google::protobuf::internal::ArenaStringPtr message_; |
185 | | friend struct ::protobuf_v1_2eproto::TableStruct; |
186 | | }; |
187 | | // ------------------------------------------------------------------- |
188 | | |
189 | | class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:v1.EchoResponse) */ { |
190 | | public: |
191 | | EchoResponse(); |
192 | | virtual ~EchoResponse(); |
193 | | |
194 | | EchoResponse(const EchoResponse& from); |
195 | | |
196 | 0 | inline EchoResponse& operator=(const EchoResponse& from) { |
197 | 0 | CopyFrom(from); |
198 | 0 | return *this; |
199 | 0 | } |
200 | | #if LANG_CXX11 |
201 | | EchoResponse(EchoResponse&& from) noexcept |
202 | 0 | : EchoResponse() { |
203 | 0 | *this = ::std::move(from); |
204 | 0 | } |
205 | | |
206 | 0 | inline EchoResponse& operator=(EchoResponse&& from) noexcept { |
207 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
208 | 0 | if (this != &from) InternalSwap(&from); |
209 | 0 | } else { |
210 | 0 | CopyFrom(from); |
211 | 0 | } |
212 | 0 | return *this; |
213 | 0 | } |
214 | | #endif |
215 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
216 | 0 | return _internal_metadata_.unknown_fields(); |
217 | 0 | } |
218 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
219 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
220 | 0 | } |
221 | | |
222 | | static const ::google::protobuf::Descriptor* descriptor(); |
223 | | static const EchoResponse& default_instance(); |
224 | | |
225 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
226 | 0 | static inline const EchoResponse* internal_default_instance() { |
227 | 0 | return reinterpret_cast<const EchoResponse*>( |
228 | 0 | &_EchoResponse_default_instance_); |
229 | 0 | } |
230 | | static constexpr int kIndexInFileMessages = |
231 | | 1; |
232 | | |
233 | | void Swap(EchoResponse* other); |
234 | 0 | friend void swap(EchoResponse& a, EchoResponse& b) { |
235 | 0 | a.Swap(&b); |
236 | 0 | } |
237 | | |
238 | | // implements Message ---------------------------------------------- |
239 | | |
240 | 0 | inline EchoResponse* New() const final { |
241 | 0 | return CreateMaybeMessage<EchoResponse>(NULL); |
242 | 0 | } |
243 | | |
244 | 0 | EchoResponse* New(::google::protobuf::Arena* arena) const final { |
245 | 0 | return CreateMaybeMessage<EchoResponse>(arena); |
246 | 0 | } |
247 | | void CopyFrom(const ::google::protobuf::Message& from) final; |
248 | | void MergeFrom(const ::google::protobuf::Message& from) final; |
249 | | void CopyFrom(const EchoResponse& from); |
250 | | void MergeFrom(const EchoResponse& from); |
251 | | void Clear() final; |
252 | | bool IsInitialized() const final; |
253 | | |
254 | | size_t ByteSizeLong() const final; |
255 | | bool MergePartialFromCodedStream( |
256 | | ::google::protobuf::io::CodedInputStream* input) final; |
257 | | void SerializeWithCachedSizes( |
258 | | ::google::protobuf::io::CodedOutputStream* output) const final; |
259 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
260 | | bool deterministic, ::google::protobuf::uint8* target) const final; |
261 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
262 | | |
263 | | private: |
264 | | void SharedCtor(); |
265 | | void SharedDtor(); |
266 | | void SetCachedSize(int size) const final; |
267 | | void InternalSwap(EchoResponse* other); |
268 | | private: |
269 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
270 | 0 | return NULL; |
271 | 0 | } |
272 | 0 | inline void* MaybeArenaPtr() const { |
273 | 0 | return NULL; |
274 | 0 | } |
275 | | public: |
276 | | |
277 | | ::google::protobuf::Metadata GetMetadata() const final; |
278 | | |
279 | | // nested types ---------------------------------------------------- |
280 | | |
281 | | // accessors ------------------------------------------------------- |
282 | | |
283 | | // required string message = 1; |
284 | | bool has_message() const; |
285 | | void clear_message(); |
286 | | static const int kMessageFieldNumber = 1; |
287 | | const ::std::string& message() const; |
288 | | void set_message(const ::std::string& value); |
289 | | #if LANG_CXX11 |
290 | | void set_message(::std::string&& value); |
291 | | #endif |
292 | | void set_message(const char* value); |
293 | | void set_message(const char* value, size_t size); |
294 | | ::std::string* mutable_message(); |
295 | | ::std::string* release_message(); |
296 | | void set_allocated_message(::std::string* message); |
297 | | |
298 | | // @@protoc_insertion_point(class_scope:v1.EchoResponse) |
299 | | private: |
300 | | void set_has_message(); |
301 | | void clear_has_message(); |
302 | | |
303 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
304 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
305 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
306 | | ::google::protobuf::internal::ArenaStringPtr message_; |
307 | | friend struct ::protobuf_v1_2eproto::TableStruct; |
308 | | }; |
309 | | // =================================================================== |
310 | | |
311 | | class EchoService_Stub; |
312 | | |
313 | | class EchoService : public ::google::protobuf::Service { |
314 | | protected: |
315 | | // This class should be treated as an abstract interface. |
316 | 0 | inline EchoService() {}; |
317 | | public: |
318 | | virtual ~EchoService(); |
319 | | |
320 | | typedef EchoService_Stub Stub; |
321 | | |
322 | | static const ::google::protobuf::ServiceDescriptor* descriptor(); |
323 | | |
324 | | virtual void Echo(::google::protobuf::RpcController* controller, |
325 | | const ::v1::EchoRequest* request, |
326 | | ::v1::EchoResponse* response, |
327 | | ::google::protobuf::Closure* done); |
328 | | virtual void Echo2(::google::protobuf::RpcController* controller, |
329 | | const ::v1::EchoRequest* request, |
330 | | ::v1::EchoResponse* response, |
331 | | ::google::protobuf::Closure* done); |
332 | | virtual void Echo3(::google::protobuf::RpcController* controller, |
333 | | const ::v1::EchoRequest* request, |
334 | | ::v1::EchoResponse* response, |
335 | | ::google::protobuf::Closure* done); |
336 | | virtual void Echo4(::google::protobuf::RpcController* controller, |
337 | | const ::v1::EchoRequest* request, |
338 | | ::v1::EchoResponse* response, |
339 | | ::google::protobuf::Closure* done); |
340 | | virtual void Echo5(::google::protobuf::RpcController* controller, |
341 | | const ::v1::EchoRequest* request, |
342 | | ::v1::EchoResponse* response, |
343 | | ::google::protobuf::Closure* done); |
344 | | |
345 | | // implements Service ---------------------------------------------- |
346 | | |
347 | | const ::google::protobuf::ServiceDescriptor* GetDescriptor(); |
348 | | void CallMethod(const ::google::protobuf::MethodDescriptor* method, |
349 | | ::google::protobuf::RpcController* controller, |
350 | | const ::google::protobuf::Message* request, |
351 | | ::google::protobuf::Message* response, |
352 | | ::google::protobuf::Closure* done); |
353 | | const ::google::protobuf::Message& GetRequestPrototype( |
354 | | const ::google::protobuf::MethodDescriptor* method) const; |
355 | | const ::google::protobuf::Message& GetResponsePrototype( |
356 | | const ::google::protobuf::MethodDescriptor* method) const; |
357 | | |
358 | | private: |
359 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService); |
360 | | }; |
361 | | |
362 | | class EchoService_Stub : public EchoService { |
363 | | public: |
364 | | EchoService_Stub(::google::protobuf::RpcChannel* channel); |
365 | | EchoService_Stub(::google::protobuf::RpcChannel* channel, |
366 | | ::google::protobuf::Service::ChannelOwnership ownership); |
367 | | ~EchoService_Stub(); |
368 | | |
369 | 0 | inline ::google::protobuf::RpcChannel* channel() { return channel_; } |
370 | | |
371 | | // implements EchoService ------------------------------------------ |
372 | | |
373 | | void Echo(::google::protobuf::RpcController* controller, |
374 | | const ::v1::EchoRequest* request, |
375 | | ::v1::EchoResponse* response, |
376 | | ::google::protobuf::Closure* done); |
377 | | void Echo2(::google::protobuf::RpcController* controller, |
378 | | const ::v1::EchoRequest* request, |
379 | | ::v1::EchoResponse* response, |
380 | | ::google::protobuf::Closure* done); |
381 | | void Echo3(::google::protobuf::RpcController* controller, |
382 | | const ::v1::EchoRequest* request, |
383 | | ::v1::EchoResponse* response, |
384 | | ::google::protobuf::Closure* done); |
385 | | void Echo4(::google::protobuf::RpcController* controller, |
386 | | const ::v1::EchoRequest* request, |
387 | | ::v1::EchoResponse* response, |
388 | | ::google::protobuf::Closure* done); |
389 | | void Echo5(::google::protobuf::RpcController* controller, |
390 | | const ::v1::EchoRequest* request, |
391 | | ::v1::EchoResponse* response, |
392 | | ::google::protobuf::Closure* done); |
393 | | private: |
394 | | ::google::protobuf::RpcChannel* channel_; |
395 | | bool owns_channel_; |
396 | | GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub); |
397 | | }; |
398 | | |
399 | | |
400 | | // =================================================================== |
401 | | |
402 | | |
403 | | // =================================================================== |
404 | | |
405 | | #ifdef __GNUC__ |
406 | | #pragma GCC diagnostic push |
407 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
408 | | #endif // __GNUC__ |
409 | | // EchoRequest |
410 | | |
411 | | // required string message = 1; |
412 | 0 | inline bool EchoRequest::has_message() const { |
413 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
414 | 0 | } |
415 | 0 | inline void EchoRequest::set_has_message() { |
416 | 0 | _has_bits_[0] |= 0x00000001u; |
417 | 0 | } |
418 | 0 | inline void EchoRequest::clear_has_message() { |
419 | 0 | _has_bits_[0] &= ~0x00000001u; |
420 | 0 | } |
421 | 0 | inline void EchoRequest::clear_message() { |
422 | 0 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
423 | 0 | clear_has_message(); |
424 | 0 | } |
425 | 0 | inline const ::std::string& EchoRequest::message() const { |
426 | | // @@protoc_insertion_point(field_get:v1.EchoRequest.message) |
427 | 0 | return message_.GetNoArena(); |
428 | 0 | } |
429 | 0 | inline void EchoRequest::set_message(const ::std::string& value) { |
430 | 0 | set_has_message(); |
431 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
432 | 0 | // @@protoc_insertion_point(field_set:v1.EchoRequest.message) |
433 | 0 | } |
434 | | #if LANG_CXX11 |
435 | 0 | inline void EchoRequest::set_message(::std::string&& value) { |
436 | 0 | set_has_message(); |
437 | 0 | message_.SetNoArena( |
438 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
439 | 0 | // @@protoc_insertion_point(field_set_rvalue:v1.EchoRequest.message) |
440 | 0 | } |
441 | | #endif |
442 | 0 | inline void EchoRequest::set_message(const char* value) { |
443 | 0 | GOOGLE_DCHECK(value != NULL); |
444 | 0 | set_has_message(); |
445 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
446 | 0 | // @@protoc_insertion_point(field_set_char:v1.EchoRequest.message) |
447 | 0 | } |
448 | 0 | inline void EchoRequest::set_message(const char* value, size_t size) { |
449 | 0 | set_has_message(); |
450 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
451 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
452 | 0 | // @@protoc_insertion_point(field_set_pointer:v1.EchoRequest.message) |
453 | 0 | } |
454 | 0 | inline ::std::string* EchoRequest::mutable_message() { |
455 | 0 | set_has_message(); |
456 | | // @@protoc_insertion_point(field_mutable:v1.EchoRequest.message) |
457 | 0 | return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
458 | 0 | } |
459 | 0 | inline ::std::string* EchoRequest::release_message() { |
460 | 0 | // @@protoc_insertion_point(field_release:v1.EchoRequest.message) |
461 | 0 | if (!has_message()) { |
462 | 0 | return NULL; |
463 | 0 | } |
464 | 0 | clear_has_message(); |
465 | 0 | return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
466 | 0 | } |
467 | 0 | inline void EchoRequest::set_allocated_message(::std::string* message) { |
468 | 0 | if (message != NULL) { |
469 | 0 | set_has_message(); |
470 | 0 | } else { |
471 | 0 | clear_has_message(); |
472 | 0 | } |
473 | 0 | message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); |
474 | 0 | // @@protoc_insertion_point(field_set_allocated:v1.EchoRequest.message) |
475 | 0 | } |
476 | | |
477 | | // ------------------------------------------------------------------- |
478 | | |
479 | | // EchoResponse |
480 | | |
481 | | // required string message = 1; |
482 | 0 | inline bool EchoResponse::has_message() const { |
483 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
484 | 0 | } |
485 | 0 | inline void EchoResponse::set_has_message() { |
486 | 0 | _has_bits_[0] |= 0x00000001u; |
487 | 0 | } |
488 | 0 | inline void EchoResponse::clear_has_message() { |
489 | 0 | _has_bits_[0] &= ~0x00000001u; |
490 | 0 | } |
491 | 0 | inline void EchoResponse::clear_message() { |
492 | 0 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
493 | 0 | clear_has_message(); |
494 | 0 | } |
495 | 0 | inline const ::std::string& EchoResponse::message() const { |
496 | | // @@protoc_insertion_point(field_get:v1.EchoResponse.message) |
497 | 0 | return message_.GetNoArena(); |
498 | 0 | } |
499 | 0 | inline void EchoResponse::set_message(const ::std::string& value) { |
500 | 0 | set_has_message(); |
501 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
502 | 0 | // @@protoc_insertion_point(field_set:v1.EchoResponse.message) |
503 | 0 | } |
504 | | #if LANG_CXX11 |
505 | 0 | inline void EchoResponse::set_message(::std::string&& value) { |
506 | 0 | set_has_message(); |
507 | 0 | message_.SetNoArena( |
508 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
509 | 0 | // @@protoc_insertion_point(field_set_rvalue:v1.EchoResponse.message) |
510 | 0 | } |
511 | | #endif |
512 | 0 | inline void EchoResponse::set_message(const char* value) { |
513 | 0 | GOOGLE_DCHECK(value != NULL); |
514 | 0 | set_has_message(); |
515 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
516 | 0 | // @@protoc_insertion_point(field_set_char:v1.EchoResponse.message) |
517 | 0 | } |
518 | 0 | inline void EchoResponse::set_message(const char* value, size_t size) { |
519 | 0 | set_has_message(); |
520 | 0 | message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
521 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
522 | 0 | // @@protoc_insertion_point(field_set_pointer:v1.EchoResponse.message) |
523 | 0 | } |
524 | 0 | inline ::std::string* EchoResponse::mutable_message() { |
525 | 0 | set_has_message(); |
526 | | // @@protoc_insertion_point(field_mutable:v1.EchoResponse.message) |
527 | 0 | return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
528 | 0 | } |
529 | 0 | inline ::std::string* EchoResponse::release_message() { |
530 | 0 | // @@protoc_insertion_point(field_release:v1.EchoResponse.message) |
531 | 0 | if (!has_message()) { |
532 | 0 | return NULL; |
533 | 0 | } |
534 | 0 | clear_has_message(); |
535 | 0 | return message_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
536 | 0 | } |
537 | 0 | inline void EchoResponse::set_allocated_message(::std::string* message) { |
538 | 0 | if (message != NULL) { |
539 | 0 | set_has_message(); |
540 | 0 | } else { |
541 | 0 | clear_has_message(); |
542 | 0 | } |
543 | 0 | message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); |
544 | 0 | // @@protoc_insertion_point(field_set_allocated:v1.EchoResponse.message) |
545 | 0 | } |
546 | | |
547 | | #ifdef __GNUC__ |
548 | | #pragma GCC diagnostic pop |
549 | | #endif // __GNUC__ |
550 | | // ------------------------------------------------------------------- |
551 | | |
552 | | |
553 | | // @@protoc_insertion_point(namespace_scope) |
554 | | |
555 | | } // namespace v1 |
556 | | |
557 | | // @@protoc_insertion_point(global_scope) |
558 | | |
559 | | #endif // PROTOBUF_INCLUDED_v1_2eproto |