Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: test/cpp/util/messages.proto
3 :
4 : #ifndef PROTOBUF_test_2fcpp_2futil_2fmessages_2eproto__INCLUDED
5 : #define PROTOBUF_test_2fcpp_2futil_2fmessages_2eproto__INCLUDED
6 :
7 : #include <string>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 :
11 : #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 : #include <google/protobuf/arenastring.h>
24 : #include <google/protobuf/generated_message_util.h>
25 : #include <google/protobuf/metadata.h>
26 : #include <google/protobuf/message.h>
27 : #include <google/protobuf/repeated_field.h>
28 : #include <google/protobuf/extension_set.h>
29 : #include <google/protobuf/unknown_field_set.h>
30 : // @@protoc_insertion_point(includes)
31 :
32 : namespace grpc {
33 : namespace cpp {
34 : namespace test {
35 : namespace util {
36 :
37 : // Internal implementation detail -- do not call these.
38 : void protobuf_AddDesc_test_2fcpp_2futil_2fmessages_2eproto();
39 : void protobuf_AssignDesc_test_2fcpp_2futil_2fmessages_2eproto();
40 : void protobuf_ShutdownFile_test_2fcpp_2futil_2fmessages_2eproto();
41 :
42 : class EchoRequest;
43 : class EchoResponse;
44 : class RequestParams;
45 : class ResponseParams;
46 :
47 : // ===================================================================
48 :
49 : class RequestParams : public ::google::protobuf::Message {
50 : public:
51 : RequestParams();
52 : virtual ~RequestParams();
53 :
54 : RequestParams(const RequestParams& from);
55 :
56 : inline RequestParams& operator=(const RequestParams& from) {
57 : CopyFrom(from);
58 : return *this;
59 : }
60 :
61 : static const ::google::protobuf::Descriptor* descriptor();
62 : static const RequestParams& default_instance();
63 :
64 : void Swap(RequestParams* other);
65 :
66 : // implements Message ----------------------------------------------
67 :
68 0 : inline RequestParams* New() const { return New(NULL); }
69 :
70 : RequestParams* New(::google::protobuf::Arena* arena) const;
71 : void CopyFrom(const ::google::protobuf::Message& from);
72 : void MergeFrom(const ::google::protobuf::Message& from);
73 : void CopyFrom(const RequestParams& from);
74 : void MergeFrom(const RequestParams& from);
75 : void Clear();
76 : bool IsInitialized() const;
77 :
78 : int ByteSize() const;
79 : bool MergePartialFromCodedStream(
80 : ::google::protobuf::io::CodedInputStream* input);
81 : void SerializeWithCachedSizes(
82 : ::google::protobuf::io::CodedOutputStream* output) const;
83 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
84 42 : int GetCachedSize() const { return _cached_size_; }
85 : private:
86 : void SharedCtor();
87 : void SharedDtor();
88 : void SetCachedSize(int size) const;
89 : void InternalSwap(RequestParams* other);
90 : private:
91 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
92 : return _internal_metadata_.arena();
93 : }
94 : inline void* MaybeArenaPtr() const {
95 : return _internal_metadata_.raw_arena_ptr();
96 : }
97 : public:
98 :
99 : ::google::protobuf::Metadata GetMetadata() const;
100 :
101 : // nested types ----------------------------------------------------
102 :
103 : // accessors -------------------------------------------------------
104 :
105 : // optional bool echo_deadline = 1;
106 : void clear_echo_deadline();
107 : static const int kEchoDeadlineFieldNumber = 1;
108 : bool echo_deadline() const;
109 : void set_echo_deadline(bool value);
110 :
111 : // optional int32 client_cancel_after_us = 2;
112 : void clear_client_cancel_after_us();
113 : static const int kClientCancelAfterUsFieldNumber = 2;
114 : ::google::protobuf::int32 client_cancel_after_us() const;
115 : void set_client_cancel_after_us(::google::protobuf::int32 value);
116 :
117 : // optional int32 server_cancel_after_us = 3;
118 : void clear_server_cancel_after_us();
119 : static const int kServerCancelAfterUsFieldNumber = 3;
120 : ::google::protobuf::int32 server_cancel_after_us() const;
121 : void set_server_cancel_after_us(::google::protobuf::int32 value);
122 :
123 : // optional bool echo_metadata = 4;
124 : void clear_echo_metadata();
125 : static const int kEchoMetadataFieldNumber = 4;
126 : bool echo_metadata() const;
127 : void set_echo_metadata(bool value);
128 :
129 : // optional bool check_auth_context = 5;
130 : void clear_check_auth_context();
131 : static const int kCheckAuthContextFieldNumber = 5;
132 : bool check_auth_context() const;
133 : void set_check_auth_context(bool value);
134 :
135 : // optional int32 response_message_length = 6;
136 : void clear_response_message_length();
137 : static const int kResponseMessageLengthFieldNumber = 6;
138 : ::google::protobuf::int32 response_message_length() const;
139 : void set_response_message_length(::google::protobuf::int32 value);
140 :
141 : // optional bool echo_peer = 7;
142 : void clear_echo_peer();
143 : static const int kEchoPeerFieldNumber = 7;
144 : bool echo_peer() const;
145 : void set_echo_peer(bool value);
146 :
147 : // optional string expected_client_identity = 8;
148 : void clear_expected_client_identity();
149 : static const int kExpectedClientIdentityFieldNumber = 8;
150 : const ::std::string& expected_client_identity() const;
151 : void set_expected_client_identity(const ::std::string& value);
152 : void set_expected_client_identity(const char* value);
153 : void set_expected_client_identity(const char* value, size_t size);
154 : ::std::string* mutable_expected_client_identity();
155 : ::std::string* release_expected_client_identity();
156 : void set_allocated_expected_client_identity(::std::string* expected_client_identity);
157 :
158 : // @@protoc_insertion_point(class_scope:grpc.cpp.test.util.RequestParams)
159 : private:
160 :
161 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
162 : bool _is_default_instance_;
163 : ::google::protobuf::int32 client_cancel_after_us_;
164 : ::google::protobuf::int32 server_cancel_after_us_;
165 : bool echo_deadline_;
166 : bool echo_metadata_;
167 : bool check_auth_context_;
168 : bool echo_peer_;
169 : ::google::protobuf::int32 response_message_length_;
170 : ::google::protobuf::internal::ArenaStringPtr expected_client_identity_;
171 : mutable int _cached_size_;
172 : friend void protobuf_AddDesc_test_2fcpp_2futil_2fmessages_2eproto();
173 : friend void protobuf_AssignDesc_test_2fcpp_2futil_2fmessages_2eproto();
174 : friend void protobuf_ShutdownFile_test_2fcpp_2futil_2fmessages_2eproto();
175 :
176 : void InitAsDefaultInstance();
177 : static RequestParams* default_instance_;
178 : };
179 : // -------------------------------------------------------------------
180 :
181 : class EchoRequest : public ::google::protobuf::Message {
182 : public:
183 : EchoRequest();
184 : virtual ~EchoRequest();
185 :
186 : EchoRequest(const EchoRequest& from);
187 :
188 : inline EchoRequest& operator=(const EchoRequest& from) {
189 : CopyFrom(from);
190 : return *this;
191 : }
192 :
193 : static const ::google::protobuf::Descriptor* descriptor();
194 : static const EchoRequest& default_instance();
195 :
196 : void Swap(EchoRequest* other);
197 :
198 : // implements Message ----------------------------------------------
199 :
200 0 : inline EchoRequest* New() const { return New(NULL); }
201 :
202 : EchoRequest* New(::google::protobuf::Arena* arena) const;
203 : void CopyFrom(const ::google::protobuf::Message& from);
204 : void MergeFrom(const ::google::protobuf::Message& from);
205 : void CopyFrom(const EchoRequest& from);
206 : void MergeFrom(const EchoRequest& from);
207 : void Clear();
208 : bool IsInitialized() const;
209 :
210 : int ByteSize() const;
211 : bool MergePartialFromCodedStream(
212 : ::google::protobuf::io::CodedInputStream* input);
213 : void SerializeWithCachedSizes(
214 : ::google::protobuf::io::CodedOutputStream* output) const;
215 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
216 0 : int GetCachedSize() const { return _cached_size_; }
217 : private:
218 : void SharedCtor();
219 : void SharedDtor();
220 : void SetCachedSize(int size) const;
221 : void InternalSwap(EchoRequest* other);
222 : private:
223 110771 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
224 221542 : return _internal_metadata_.arena();
225 : }
226 : inline void* MaybeArenaPtr() const {
227 : return _internal_metadata_.raw_arena_ptr();
228 : }
229 : public:
230 :
231 : ::google::protobuf::Metadata GetMetadata() const;
232 :
233 : // nested types ----------------------------------------------------
234 :
235 : // accessors -------------------------------------------------------
236 :
237 : // optional string message = 1;
238 : void clear_message();
239 : static const int kMessageFieldNumber = 1;
240 : const ::std::string& message() const;
241 : void set_message(const ::std::string& value);
242 : void set_message(const char* value);
243 : void set_message(const char* value, size_t size);
244 : ::std::string* mutable_message();
245 : ::std::string* release_message();
246 : void set_allocated_message(::std::string* message);
247 :
248 : // optional .grpc.cpp.test.util.RequestParams param = 2;
249 : bool has_param() const;
250 : void clear_param();
251 : static const int kParamFieldNumber = 2;
252 : const ::grpc::cpp::test::util::RequestParams& param() const;
253 : ::grpc::cpp::test::util::RequestParams* mutable_param();
254 : ::grpc::cpp::test::util::RequestParams* release_param();
255 : void set_allocated_param(::grpc::cpp::test::util::RequestParams* param);
256 :
257 : // @@protoc_insertion_point(class_scope:grpc.cpp.test.util.EchoRequest)
258 : private:
259 :
260 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
261 : bool _is_default_instance_;
262 : ::google::protobuf::internal::ArenaStringPtr message_;
263 : ::grpc::cpp::test::util::RequestParams* param_;
264 : mutable int _cached_size_;
265 : friend void protobuf_AddDesc_test_2fcpp_2futil_2fmessages_2eproto();
266 : friend void protobuf_AssignDesc_test_2fcpp_2futil_2fmessages_2eproto();
267 : friend void protobuf_ShutdownFile_test_2fcpp_2futil_2fmessages_2eproto();
268 :
269 : void InitAsDefaultInstance();
270 : static EchoRequest* default_instance_;
271 : };
272 : // -------------------------------------------------------------------
273 :
274 : class ResponseParams : public ::google::protobuf::Message {
275 : public:
276 : ResponseParams();
277 : virtual ~ResponseParams();
278 :
279 : ResponseParams(const ResponseParams& from);
280 :
281 : inline ResponseParams& operator=(const ResponseParams& from) {
282 : CopyFrom(from);
283 : return *this;
284 : }
285 :
286 : static const ::google::protobuf::Descriptor* descriptor();
287 : static const ResponseParams& default_instance();
288 :
289 : void Swap(ResponseParams* other);
290 :
291 : // implements Message ----------------------------------------------
292 :
293 0 : inline ResponseParams* New() const { return New(NULL); }
294 :
295 : ResponseParams* New(::google::protobuf::Arena* arena) const;
296 : void CopyFrom(const ::google::protobuf::Message& from);
297 : void MergeFrom(const ::google::protobuf::Message& from);
298 : void CopyFrom(const ResponseParams& from);
299 : void MergeFrom(const ResponseParams& from);
300 : void Clear();
301 : bool IsInitialized() const;
302 :
303 : int ByteSize() const;
304 : bool MergePartialFromCodedStream(
305 : ::google::protobuf::io::CodedInputStream* input);
306 : void SerializeWithCachedSizes(
307 : ::google::protobuf::io::CodedOutputStream* output) const;
308 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
309 19 : int GetCachedSize() const { return _cached_size_; }
310 : private:
311 : void SharedCtor();
312 : void SharedDtor();
313 : void SetCachedSize(int size) const;
314 : void InternalSwap(ResponseParams* other);
315 : private:
316 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
317 : return _internal_metadata_.arena();
318 : }
319 : inline void* MaybeArenaPtr() const {
320 : return _internal_metadata_.raw_arena_ptr();
321 : }
322 : public:
323 :
324 : ::google::protobuf::Metadata GetMetadata() const;
325 :
326 : // nested types ----------------------------------------------------
327 :
328 : // accessors -------------------------------------------------------
329 :
330 : // optional int64 request_deadline = 1;
331 : void clear_request_deadline();
332 : static const int kRequestDeadlineFieldNumber = 1;
333 : ::google::protobuf::int64 request_deadline() const;
334 : void set_request_deadline(::google::protobuf::int64 value);
335 :
336 : // optional string host = 2;
337 : void clear_host();
338 : static const int kHostFieldNumber = 2;
339 : const ::std::string& host() const;
340 : void set_host(const ::std::string& value);
341 : void set_host(const char* value);
342 : void set_host(const char* value, size_t size);
343 : ::std::string* mutable_host();
344 : ::std::string* release_host();
345 : void set_allocated_host(::std::string* host);
346 :
347 : // optional string peer = 3;
348 : void clear_peer();
349 : static const int kPeerFieldNumber = 3;
350 : const ::std::string& peer() const;
351 : void set_peer(const ::std::string& value);
352 : void set_peer(const char* value);
353 : void set_peer(const char* value, size_t size);
354 : ::std::string* mutable_peer();
355 : ::std::string* release_peer();
356 : void set_allocated_peer(::std::string* peer);
357 :
358 : // @@protoc_insertion_point(class_scope:grpc.cpp.test.util.ResponseParams)
359 : private:
360 :
361 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
362 : bool _is_default_instance_;
363 : ::google::protobuf::int64 request_deadline_;
364 : ::google::protobuf::internal::ArenaStringPtr host_;
365 : ::google::protobuf::internal::ArenaStringPtr peer_;
366 : mutable int _cached_size_;
367 : friend void protobuf_AddDesc_test_2fcpp_2futil_2fmessages_2eproto();
368 : friend void protobuf_AssignDesc_test_2fcpp_2futil_2fmessages_2eproto();
369 : friend void protobuf_ShutdownFile_test_2fcpp_2futil_2fmessages_2eproto();
370 :
371 : void InitAsDefaultInstance();
372 : static ResponseParams* default_instance_;
373 : };
374 : // -------------------------------------------------------------------
375 :
376 : class EchoResponse : public ::google::protobuf::Message {
377 : public:
378 : EchoResponse();
379 : virtual ~EchoResponse();
380 :
381 : EchoResponse(const EchoResponse& from);
382 :
383 : inline EchoResponse& operator=(const EchoResponse& from) {
384 : CopyFrom(from);
385 : return *this;
386 : }
387 :
388 : static const ::google::protobuf::Descriptor* descriptor();
389 : static const EchoResponse& default_instance();
390 :
391 : void Swap(EchoResponse* other);
392 :
393 : // implements Message ----------------------------------------------
394 :
395 0 : inline EchoResponse* New() const { return New(NULL); }
396 :
397 : EchoResponse* New(::google::protobuf::Arena* arena) const;
398 : void CopyFrom(const ::google::protobuf::Message& from);
399 : void MergeFrom(const ::google::protobuf::Message& from);
400 : void CopyFrom(const EchoResponse& from);
401 : void MergeFrom(const EchoResponse& from);
402 : void Clear();
403 : bool IsInitialized() const;
404 :
405 : int ByteSize() const;
406 : bool MergePartialFromCodedStream(
407 : ::google::protobuf::io::CodedInputStream* input);
408 : void SerializeWithCachedSizes(
409 : ::google::protobuf::io::CodedOutputStream* output) const;
410 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
411 0 : int GetCachedSize() const { return _cached_size_; }
412 : private:
413 : void SharedCtor();
414 : void SharedDtor();
415 : void SetCachedSize(int size) const;
416 : void InternalSwap(EchoResponse* other);
417 : private:
418 128906 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
419 257812 : return _internal_metadata_.arena();
420 : }
421 : inline void* MaybeArenaPtr() const {
422 : return _internal_metadata_.raw_arena_ptr();
423 : }
424 : public:
425 :
426 : ::google::protobuf::Metadata GetMetadata() const;
427 :
428 : // nested types ----------------------------------------------------
429 :
430 : // accessors -------------------------------------------------------
431 :
432 : // optional string message = 1;
433 : void clear_message();
434 : static const int kMessageFieldNumber = 1;
435 : const ::std::string& message() const;
436 : void set_message(const ::std::string& value);
437 : void set_message(const char* value);
438 : void set_message(const char* value, size_t size);
439 : ::std::string* mutable_message();
440 : ::std::string* release_message();
441 : void set_allocated_message(::std::string* message);
442 :
443 : // optional .grpc.cpp.test.util.ResponseParams param = 2;
444 : bool has_param() const;
445 : void clear_param();
446 : static const int kParamFieldNumber = 2;
447 : const ::grpc::cpp::test::util::ResponseParams& param() const;
448 : ::grpc::cpp::test::util::ResponseParams* mutable_param();
449 : ::grpc::cpp::test::util::ResponseParams* release_param();
450 : void set_allocated_param(::grpc::cpp::test::util::ResponseParams* param);
451 :
452 : // @@protoc_insertion_point(class_scope:grpc.cpp.test.util.EchoResponse)
453 : private:
454 :
455 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
456 : bool _is_default_instance_;
457 : ::google::protobuf::internal::ArenaStringPtr message_;
458 : ::grpc::cpp::test::util::ResponseParams* param_;
459 : mutable int _cached_size_;
460 : friend void protobuf_AddDesc_test_2fcpp_2futil_2fmessages_2eproto();
461 : friend void protobuf_AssignDesc_test_2fcpp_2futil_2fmessages_2eproto();
462 : friend void protobuf_ShutdownFile_test_2fcpp_2futil_2fmessages_2eproto();
463 :
464 : void InitAsDefaultInstance();
465 : static EchoResponse* default_instance_;
466 : };
467 : // ===================================================================
468 :
469 :
470 : // ===================================================================
471 :
472 : #if !PROTOBUF_INLINE_NOT_IN_HEADERS
473 : // RequestParams
474 :
475 : // optional bool echo_deadline = 1;
476 : inline void RequestParams::clear_echo_deadline() {
477 : echo_deadline_ = false;
478 : }
479 125 : inline bool RequestParams::echo_deadline() const {
480 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.echo_deadline)
481 125 : return echo_deadline_;
482 : }
483 8 : inline void RequestParams::set_echo_deadline(bool value) {
484 :
485 8 : echo_deadline_ = value;
486 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.echo_deadline)
487 8 : }
488 :
489 : // optional int32 client_cancel_after_us = 2;
490 : inline void RequestParams::clear_client_cancel_after_us() {
491 : client_cancel_after_us_ = 0;
492 : }
493 129 : inline ::google::protobuf::int32 RequestParams::client_cancel_after_us() const {
494 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.client_cancel_after_us)
495 129 : return client_cancel_after_us_;
496 : }
497 4 : inline void RequestParams::set_client_cancel_after_us(::google::protobuf::int32 value) {
498 :
499 4 : client_cancel_after_us_ = value;
500 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.client_cancel_after_us)
501 4 : }
502 :
503 : // optional int32 server_cancel_after_us = 3;
504 : inline void RequestParams::clear_server_cancel_after_us() {
505 : server_cancel_after_us_ = 0;
506 : }
507 125 : inline ::google::protobuf::int32 RequestParams::server_cancel_after_us() const {
508 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.server_cancel_after_us)
509 125 : return server_cancel_after_us_;
510 : }
511 4 : inline void RequestParams::set_server_cancel_after_us(::google::protobuf::int32 value) {
512 :
513 4 : server_cancel_after_us_ = value;
514 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.server_cancel_after_us)
515 4 : }
516 :
517 : // optional bool echo_metadata = 4;
518 : inline void RequestParams::clear_echo_metadata() {
519 : echo_metadata_ = false;
520 : }
521 110 : inline bool RequestParams::echo_metadata() const {
522 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.echo_metadata)
523 110 : return echo_metadata_;
524 : }
525 5 : inline void RequestParams::set_echo_metadata(bool value) {
526 :
527 5 : echo_metadata_ = value;
528 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.echo_metadata)
529 5 : }
530 :
531 : // optional bool check_auth_context = 5;
532 : inline void RequestParams::clear_check_auth_context() {
533 : check_auth_context_ = false;
534 : }
535 104 : inline bool RequestParams::check_auth_context() const {
536 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.check_auth_context)
537 104 : return check_auth_context_;
538 : }
539 1 : inline void RequestParams::set_check_auth_context(bool value) {
540 :
541 1 : check_auth_context_ = value;
542 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.check_auth_context)
543 1 : }
544 :
545 : // optional int32 response_message_length = 6;
546 : inline void RequestParams::clear_response_message_length() {
547 : response_message_length_ = 0;
548 : }
549 121 : inline ::google::protobuf::int32 RequestParams::response_message_length() const {
550 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.response_message_length)
551 121 : return response_message_length_;
552 : }
553 4 : inline void RequestParams::set_response_message_length(::google::protobuf::int32 value) {
554 :
555 4 : response_message_length_ = value;
556 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.response_message_length)
557 4 : }
558 :
559 : // optional bool echo_peer = 7;
560 : inline void RequestParams::clear_echo_peer() {
561 : echo_peer_ = false;
562 : }
563 111 : inline bool RequestParams::echo_peer() const {
564 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.echo_peer)
565 111 : return echo_peer_;
566 : }
567 4 : inline void RequestParams::set_echo_peer(bool value) {
568 :
569 4 : echo_peer_ = value;
570 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.echo_peer)
571 4 : }
572 :
573 : // optional string expected_client_identity = 8;
574 : inline void RequestParams::clear_expected_client_identity() {
575 : expected_client_identity_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
576 : }
577 120 : inline const ::std::string& RequestParams::expected_client_identity() const {
578 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.RequestParams.expected_client_identity)
579 120 : return expected_client_identity_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
580 : }
581 : inline void RequestParams::set_expected_client_identity(const ::std::string& value) {
582 :
583 : expected_client_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
584 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.RequestParams.expected_client_identity)
585 : }
586 2 : inline void RequestParams::set_expected_client_identity(const char* value) {
587 :
588 2 : expected_client_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
589 : // @@protoc_insertion_point(field_set_char:grpc.cpp.test.util.RequestParams.expected_client_identity)
590 2 : }
591 : inline void RequestParams::set_expected_client_identity(const char* value, size_t size) {
592 :
593 : expected_client_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
594 : ::std::string(reinterpret_cast<const char*>(value), size));
595 : // @@protoc_insertion_point(field_set_pointer:grpc.cpp.test.util.RequestParams.expected_client_identity)
596 : }
597 2 : inline ::std::string* RequestParams::mutable_expected_client_identity() {
598 :
599 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.RequestParams.expected_client_identity)
600 2 : return expected_client_identity_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
601 : }
602 : inline ::std::string* RequestParams::release_expected_client_identity() {
603 :
604 : return expected_client_identity_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
605 : }
606 : inline void RequestParams::set_allocated_expected_client_identity(::std::string* expected_client_identity) {
607 : if (expected_client_identity != NULL) {
608 :
609 : } else {
610 :
611 : }
612 : expected_client_identity_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), expected_client_identity);
613 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.RequestParams.expected_client_identity)
614 : }
615 :
616 : // -------------------------------------------------------------------
617 :
618 : // EchoRequest
619 :
620 : // optional string message = 1;
621 : inline void EchoRequest::clear_message() {
622 : message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
623 : }
624 1086904 : inline const ::std::string& EchoRequest::message() const {
625 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.EchoRequest.message)
626 1086904 : return message_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
627 : }
628 18 : inline void EchoRequest::set_message(const ::std::string& value) {
629 :
630 18 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
631 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.EchoRequest.message)
632 18 : }
633 10280 : inline void EchoRequest::set_message(const char* value) {
634 :
635 10280 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
636 : // @@protoc_insertion_point(field_set_char:grpc.cpp.test.util.EchoRequest.message)
637 10280 : }
638 : inline void EchoRequest::set_message(const char* value, size_t size) {
639 :
640 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641 : ::std::string(reinterpret_cast<const char*>(value), size));
642 : // @@protoc_insertion_point(field_set_pointer:grpc.cpp.test.util.EchoRequest.message)
643 : }
644 110771 : inline ::std::string* EchoRequest::mutable_message() {
645 :
646 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.EchoRequest.message)
647 110771 : return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
648 : }
649 : inline ::std::string* EchoRequest::release_message() {
650 :
651 : return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
652 : }
653 : inline void EchoRequest::set_allocated_message(::std::string* message) {
654 : if (message != NULL) {
655 :
656 : } else {
657 :
658 : }
659 : message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
660 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.EchoRequest.message)
661 : }
662 :
663 : // optional .grpc.cpp.test.util.RequestParams param = 2;
664 524562 : inline bool EchoRequest::has_param() const {
665 524562 : return !_is_default_instance_ && param_ != NULL;
666 : }
667 : inline void EchoRequest::clear_param() {
668 : if (GetArenaNoVirtual() == NULL && param_ != NULL) delete param_;
669 : param_ = NULL;
670 : }
671 201 : inline const ::grpc::cpp::test::util::RequestParams& EchoRequest::param() const {
672 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.EchoRequest.param)
673 201 : return param_ != NULL ? *param_ : *default_instance_->param_;
674 : }
675 73 : inline ::grpc::cpp::test::util::RequestParams* EchoRequest::mutable_param() {
676 :
677 73 : if (param_ == NULL) {
678 71 : param_ = new ::grpc::cpp::test::util::RequestParams;
679 : }
680 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.EchoRequest.param)
681 73 : return param_;
682 : }
683 : inline ::grpc::cpp::test::util::RequestParams* EchoRequest::release_param() {
684 :
685 : ::grpc::cpp::test::util::RequestParams* temp = param_;
686 : param_ = NULL;
687 : return temp;
688 : }
689 : inline void EchoRequest::set_allocated_param(::grpc::cpp::test::util::RequestParams* param) {
690 : delete param_;
691 : param_ = param;
692 : if (param) {
693 :
694 : } else {
695 :
696 : }
697 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.EchoRequest.param)
698 : }
699 :
700 : // -------------------------------------------------------------------
701 :
702 : // ResponseParams
703 :
704 : // optional int64 request_deadline = 1;
705 : inline void ResponseParams::clear_request_deadline() {
706 : request_deadline_ = GOOGLE_LONGLONG(0);
707 : }
708 74 : inline ::google::protobuf::int64 ResponseParams::request_deadline() const {
709 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.ResponseParams.request_deadline)
710 74 : return request_deadline_;
711 : }
712 8 : inline void ResponseParams::set_request_deadline(::google::protobuf::int64 value) {
713 :
714 8 : request_deadline_ = value;
715 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.ResponseParams.request_deadline)
716 8 : }
717 :
718 : // optional string host = 2;
719 : inline void ResponseParams::clear_host() {
720 : host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
721 : }
722 45 : inline const ::std::string& ResponseParams::host() const {
723 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.ResponseParams.host)
724 45 : return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
725 : }
726 1 : inline void ResponseParams::set_host(const ::std::string& value) {
727 :
728 1 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
729 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.ResponseParams.host)
730 1 : }
731 : inline void ResponseParams::set_host(const char* value) {
732 :
733 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
734 : // @@protoc_insertion_point(field_set_char:grpc.cpp.test.util.ResponseParams.host)
735 : }
736 : inline void ResponseParams::set_host(const char* value, size_t size) {
737 :
738 : host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
739 : ::std::string(reinterpret_cast<const char*>(value), size));
740 : // @@protoc_insertion_point(field_set_pointer:grpc.cpp.test.util.ResponseParams.host)
741 : }
742 1 : inline ::std::string* ResponseParams::mutable_host() {
743 :
744 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.ResponseParams.host)
745 1 : return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
746 : }
747 : inline ::std::string* ResponseParams::release_host() {
748 :
749 : return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
750 : }
751 : inline void ResponseParams::set_allocated_host(::std::string* host) {
752 : if (host != NULL) {
753 :
754 : } else {
755 :
756 : }
757 : host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
758 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.ResponseParams.host)
759 : }
760 :
761 : // optional string peer = 3;
762 : inline void ResponseParams::clear_peer() {
763 : peer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
764 : }
765 78 : inline const ::std::string& ResponseParams::peer() const {
766 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.ResponseParams.peer)
767 78 : return peer_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
768 : }
769 4 : inline void ResponseParams::set_peer(const ::std::string& value) {
770 :
771 4 : peer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
772 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.ResponseParams.peer)
773 4 : }
774 : inline void ResponseParams::set_peer(const char* value) {
775 :
776 : peer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
777 : // @@protoc_insertion_point(field_set_char:grpc.cpp.test.util.ResponseParams.peer)
778 : }
779 : inline void ResponseParams::set_peer(const char* value, size_t size) {
780 :
781 : peer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
782 : ::std::string(reinterpret_cast<const char*>(value), size));
783 : // @@protoc_insertion_point(field_set_pointer:grpc.cpp.test.util.ResponseParams.peer)
784 : }
785 6 : inline ::std::string* ResponseParams::mutable_peer() {
786 :
787 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.ResponseParams.peer)
788 6 : return peer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
789 : }
790 : inline ::std::string* ResponseParams::release_peer() {
791 :
792 : return peer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
793 : }
794 : inline void ResponseParams::set_allocated_peer(::std::string* peer) {
795 : if (peer != NULL) {
796 :
797 : } else {
798 :
799 : }
800 : peer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), peer);
801 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.ResponseParams.peer)
802 : }
803 :
804 : // -------------------------------------------------------------------
805 :
806 : // EchoResponse
807 :
808 : // optional string message = 1;
809 : inline void EchoResponse::clear_message() {
810 : message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
811 : }
812 1130318 : inline const ::std::string& EchoResponse::message() const {
813 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.EchoResponse.message)
814 1130318 : return message_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
815 : }
816 100537 : inline void EchoResponse::set_message(const ::std::string& value) {
817 :
818 100537 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
819 : // @@protoc_insertion_point(field_set:grpc.cpp.test.util.EchoResponse.message)
820 100539 : }
821 11 : inline void EchoResponse::set_message(const char* value) {
822 :
823 11 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
824 : // @@protoc_insertion_point(field_set_char:grpc.cpp.test.util.EchoResponse.message)
825 11 : }
826 : inline void EchoResponse::set_message(const char* value, size_t size) {
827 :
828 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
829 : ::std::string(reinterpret_cast<const char*>(value), size));
830 : // @@protoc_insertion_point(field_set_pointer:grpc.cpp.test.util.EchoResponse.message)
831 : }
832 128929 : inline ::std::string* EchoResponse::mutable_message() {
833 :
834 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.EchoResponse.message)
835 128929 : return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
836 : }
837 : inline ::std::string* EchoResponse::release_message() {
838 :
839 : return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
840 : }
841 : inline void EchoResponse::set_allocated_message(::std::string* message) {
842 : if (message != NULL) {
843 :
844 : } else {
845 :
846 : }
847 : message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
848 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.EchoResponse.message)
849 : }
850 :
851 : // optional .grpc.cpp.test.util.ResponseParams param = 2;
852 257843 : inline bool EchoResponse::has_param() const {
853 257843 : return !_is_default_instance_ && param_ != NULL;
854 : }
855 : inline void EchoResponse::clear_param() {
856 : if (GetArenaNoVirtual() == NULL && param_ != NULL) delete param_;
857 : param_ = NULL;
858 : }
859 17 : inline const ::grpc::cpp::test::util::ResponseParams& EchoResponse::param() const {
860 : // @@protoc_insertion_point(field_get:grpc.cpp.test.util.EchoResponse.param)
861 17 : return param_ != NULL ? *param_ : *default_instance_->param_;
862 : }
863 32 : inline ::grpc::cpp::test::util::ResponseParams* EchoResponse::mutable_param() {
864 :
865 32 : if (param_ == NULL) {
866 32 : param_ = new ::grpc::cpp::test::util::ResponseParams;
867 : }
868 : // @@protoc_insertion_point(field_mutable:grpc.cpp.test.util.EchoResponse.param)
869 32 : return param_;
870 : }
871 : inline ::grpc::cpp::test::util::ResponseParams* EchoResponse::release_param() {
872 :
873 : ::grpc::cpp::test::util::ResponseParams* temp = param_;
874 : param_ = NULL;
875 : return temp;
876 : }
877 : inline void EchoResponse::set_allocated_param(::grpc::cpp::test::util::ResponseParams* param) {
878 : delete param_;
879 : param_ = param;
880 : if (param) {
881 :
882 : } else {
883 :
884 : }
885 : // @@protoc_insertion_point(field_set_allocated:grpc.cpp.test.util.EchoResponse.param)
886 : }
887 :
888 : #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
889 : // -------------------------------------------------------------------
890 :
891 : // -------------------------------------------------------------------
892 :
893 : // -------------------------------------------------------------------
894 :
895 :
896 : // @@protoc_insertion_point(namespace_scope)
897 :
898 : } // namespace util
899 : } // namespace test
900 : } // namespace cpp
901 : } // namespace grpc
902 :
903 : // @@protoc_insertion_point(global_scope)
904 :
905 : #endif // PROTOBUF_test_2fcpp_2futil_2fmessages_2eproto__INCLUDED
|