Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: test/proto/messages.proto
3 :
4 : #ifndef PROTOBUF_test_2fproto_2fmessages_2eproto__INCLUDED
5 : #define PROTOBUF_test_2fproto_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/generated_enum_reflection.h>
30 : #include <google/protobuf/unknown_field_set.h>
31 : // @@protoc_insertion_point(includes)
32 :
33 : namespace grpc {
34 : namespace testing {
35 :
36 : // Internal implementation detail -- do not call these.
37 : void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
38 : void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
39 : void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
40 :
41 : class EchoStatus;
42 : class Payload;
43 : class ReconnectInfo;
44 : class ResponseParameters;
45 : class SimpleRequest;
46 : class SimpleResponse;
47 : class StreamingInputCallRequest;
48 : class StreamingInputCallResponse;
49 : class StreamingOutputCallRequest;
50 : class StreamingOutputCallResponse;
51 :
52 : enum PayloadType {
53 : COMPRESSABLE = 0,
54 : UNCOMPRESSABLE = 1,
55 : RANDOM = 2,
56 : PayloadType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
57 : PayloadType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
58 : };
59 : bool PayloadType_IsValid(int value);
60 : const PayloadType PayloadType_MIN = COMPRESSABLE;
61 : const PayloadType PayloadType_MAX = RANDOM;
62 : const int PayloadType_ARRAYSIZE = PayloadType_MAX + 1;
63 :
64 : const ::google::protobuf::EnumDescriptor* PayloadType_descriptor();
65 0 : inline const ::std::string& PayloadType_Name(PayloadType value) {
66 : return ::google::protobuf::internal::NameOfEnum(
67 0 : PayloadType_descriptor(), value);
68 : }
69 : inline bool PayloadType_Parse(
70 : const ::std::string& name, PayloadType* value) {
71 : return ::google::protobuf::internal::ParseNamedEnum<PayloadType>(
72 : PayloadType_descriptor(), name, value);
73 : }
74 : enum CompressionType {
75 : NONE = 0,
76 : GZIP = 1,
77 : DEFLATE = 2,
78 : CompressionType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
79 : CompressionType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
80 : };
81 : bool CompressionType_IsValid(int value);
82 : const CompressionType CompressionType_MIN = NONE;
83 : const CompressionType CompressionType_MAX = DEFLATE;
84 : const int CompressionType_ARRAYSIZE = CompressionType_MAX + 1;
85 :
86 : const ::google::protobuf::EnumDescriptor* CompressionType_descriptor();
87 0 : inline const ::std::string& CompressionType_Name(CompressionType value) {
88 : return ::google::protobuf::internal::NameOfEnum(
89 0 : CompressionType_descriptor(), value);
90 : }
91 : inline bool CompressionType_Parse(
92 : const ::std::string& name, CompressionType* value) {
93 : return ::google::protobuf::internal::ParseNamedEnum<CompressionType>(
94 : CompressionType_descriptor(), name, value);
95 : }
96 : // ===================================================================
97 :
98 : class Payload : public ::google::protobuf::Message {
99 : public:
100 : Payload();
101 : virtual ~Payload();
102 :
103 : Payload(const Payload& from);
104 :
105 : inline Payload& operator=(const Payload& from) {
106 : CopyFrom(from);
107 : return *this;
108 : }
109 :
110 : static const ::google::protobuf::Descriptor* descriptor();
111 : static const Payload& default_instance();
112 :
113 : void Swap(Payload* other);
114 :
115 : // implements Message ----------------------------------------------
116 :
117 0 : inline Payload* New() const { return New(NULL); }
118 :
119 : Payload* New(::google::protobuf::Arena* arena) const;
120 : void CopyFrom(const ::google::protobuf::Message& from);
121 : void MergeFrom(const ::google::protobuf::Message& from);
122 : void CopyFrom(const Payload& from);
123 : void MergeFrom(const Payload& from);
124 : void Clear();
125 : bool IsInitialized() const;
126 :
127 : int ByteSize() const;
128 : bool MergePartialFromCodedStream(
129 : ::google::protobuf::io::CodedInputStream* input);
130 : void SerializeWithCachedSizes(
131 : ::google::protobuf::io::CodedOutputStream* output) const;
132 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
133 8 : int GetCachedSize() const { return _cached_size_; }
134 : private:
135 : void SharedCtor();
136 : void SharedDtor();
137 : void SetCachedSize(int size) const;
138 : void InternalSwap(Payload* other);
139 : private:
140 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141 : return _internal_metadata_.arena();
142 : }
143 : inline void* MaybeArenaPtr() const {
144 : return _internal_metadata_.raw_arena_ptr();
145 : }
146 : public:
147 :
148 : ::google::protobuf::Metadata GetMetadata() const;
149 :
150 : // nested types ----------------------------------------------------
151 :
152 : // accessors -------------------------------------------------------
153 :
154 : // optional .grpc.testing.PayloadType type = 1;
155 : void clear_type();
156 : static const int kTypeFieldNumber = 1;
157 : ::grpc::testing::PayloadType type() const;
158 : void set_type(::grpc::testing::PayloadType value);
159 :
160 : // optional bytes body = 2;
161 : void clear_body();
162 : static const int kBodyFieldNumber = 2;
163 : const ::std::string& body() const;
164 : void set_body(const ::std::string& value);
165 : void set_body(const char* value);
166 : void set_body(const void* value, size_t size);
167 : ::std::string* mutable_body();
168 : ::std::string* release_body();
169 : void set_allocated_body(::std::string* body);
170 :
171 : // @@protoc_insertion_point(class_scope:grpc.testing.Payload)
172 : private:
173 :
174 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
175 : bool _is_default_instance_;
176 : ::google::protobuf::internal::ArenaStringPtr body_;
177 : int type_;
178 : mutable int _cached_size_;
179 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
180 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
181 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
182 :
183 : void InitAsDefaultInstance();
184 : static Payload* default_instance_;
185 : };
186 : // -------------------------------------------------------------------
187 :
188 : class EchoStatus : public ::google::protobuf::Message {
189 : public:
190 : EchoStatus();
191 : virtual ~EchoStatus();
192 :
193 : EchoStatus(const EchoStatus& from);
194 :
195 : inline EchoStatus& operator=(const EchoStatus& from) {
196 : CopyFrom(from);
197 : return *this;
198 : }
199 :
200 : static const ::google::protobuf::Descriptor* descriptor();
201 : static const EchoStatus& default_instance();
202 :
203 : void Swap(EchoStatus* other);
204 :
205 : // implements Message ----------------------------------------------
206 :
207 0 : inline EchoStatus* New() const { return New(NULL); }
208 :
209 : EchoStatus* New(::google::protobuf::Arena* arena) const;
210 : void CopyFrom(const ::google::protobuf::Message& from);
211 : void MergeFrom(const ::google::protobuf::Message& from);
212 : void CopyFrom(const EchoStatus& from);
213 : void MergeFrom(const EchoStatus& from);
214 : void Clear();
215 : bool IsInitialized() const;
216 :
217 : int ByteSize() const;
218 : bool MergePartialFromCodedStream(
219 : ::google::protobuf::io::CodedInputStream* input);
220 : void SerializeWithCachedSizes(
221 : ::google::protobuf::io::CodedOutputStream* output) const;
222 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
223 0 : int GetCachedSize() const { return _cached_size_; }
224 : private:
225 : void SharedCtor();
226 : void SharedDtor();
227 : void SetCachedSize(int size) const;
228 : void InternalSwap(EchoStatus* other);
229 : private:
230 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
231 : return _internal_metadata_.arena();
232 : }
233 : inline void* MaybeArenaPtr() const {
234 : return _internal_metadata_.raw_arena_ptr();
235 : }
236 : public:
237 :
238 : ::google::protobuf::Metadata GetMetadata() const;
239 :
240 : // nested types ----------------------------------------------------
241 :
242 : // accessors -------------------------------------------------------
243 :
244 : // optional int32 code = 1;
245 : void clear_code();
246 : static const int kCodeFieldNumber = 1;
247 : ::google::protobuf::int32 code() const;
248 : void set_code(::google::protobuf::int32 value);
249 :
250 : // optional string message = 2;
251 : void clear_message();
252 : static const int kMessageFieldNumber = 2;
253 : const ::std::string& message() const;
254 : void set_message(const ::std::string& value);
255 : void set_message(const char* value);
256 : void set_message(const char* value, size_t size);
257 : ::std::string* mutable_message();
258 : ::std::string* release_message();
259 : void set_allocated_message(::std::string* message);
260 :
261 : // @@protoc_insertion_point(class_scope:grpc.testing.EchoStatus)
262 : private:
263 :
264 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
265 : bool _is_default_instance_;
266 : ::google::protobuf::internal::ArenaStringPtr message_;
267 : ::google::protobuf::int32 code_;
268 : mutable int _cached_size_;
269 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
270 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
271 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
272 :
273 : void InitAsDefaultInstance();
274 : static EchoStatus* default_instance_;
275 : };
276 : // -------------------------------------------------------------------
277 :
278 : class SimpleRequest : public ::google::protobuf::Message {
279 : public:
280 : SimpleRequest();
281 : virtual ~SimpleRequest();
282 :
283 : SimpleRequest(const SimpleRequest& from);
284 :
285 : inline SimpleRequest& operator=(const SimpleRequest& from) {
286 : CopyFrom(from);
287 : return *this;
288 : }
289 :
290 : static const ::google::protobuf::Descriptor* descriptor();
291 : static const SimpleRequest& default_instance();
292 :
293 : void Swap(SimpleRequest* other);
294 :
295 : // implements Message ----------------------------------------------
296 :
297 0 : inline SimpleRequest* New() const { return New(NULL); }
298 :
299 : SimpleRequest* New(::google::protobuf::Arena* arena) const;
300 : void CopyFrom(const ::google::protobuf::Message& from);
301 : void MergeFrom(const ::google::protobuf::Message& from);
302 : void CopyFrom(const SimpleRequest& from);
303 : void MergeFrom(const SimpleRequest& from);
304 : void Clear();
305 : bool IsInitialized() const;
306 :
307 : int ByteSize() const;
308 : bool MergePartialFromCodedStream(
309 : ::google::protobuf::io::CodedInputStream* input);
310 : void SerializeWithCachedSizes(
311 : ::google::protobuf::io::CodedOutputStream* output) const;
312 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
313 0 : int GetCachedSize() const { return _cached_size_; }
314 : private:
315 : void SharedCtor();
316 : void SharedDtor();
317 : void SetCachedSize(int size) const;
318 : void InternalSwap(SimpleRequest* other);
319 : private:
320 8 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
321 16 : return _internal_metadata_.arena();
322 : }
323 : inline void* MaybeArenaPtr() const {
324 : return _internal_metadata_.raw_arena_ptr();
325 : }
326 : public:
327 :
328 : ::google::protobuf::Metadata GetMetadata() const;
329 :
330 : // nested types ----------------------------------------------------
331 :
332 : // accessors -------------------------------------------------------
333 :
334 : // optional .grpc.testing.PayloadType response_type = 1;
335 : void clear_response_type();
336 : static const int kResponseTypeFieldNumber = 1;
337 : ::grpc::testing::PayloadType response_type() const;
338 : void set_response_type(::grpc::testing::PayloadType value);
339 :
340 : // optional int32 response_size = 2;
341 : void clear_response_size();
342 : static const int kResponseSizeFieldNumber = 2;
343 : ::google::protobuf::int32 response_size() const;
344 : void set_response_size(::google::protobuf::int32 value);
345 :
346 : // optional .grpc.testing.Payload payload = 3;
347 : bool has_payload() const;
348 : void clear_payload();
349 : static const int kPayloadFieldNumber = 3;
350 : const ::grpc::testing::Payload& payload() const;
351 : ::grpc::testing::Payload* mutable_payload();
352 : ::grpc::testing::Payload* release_payload();
353 : void set_allocated_payload(::grpc::testing::Payload* payload);
354 :
355 : // optional bool fill_username = 4;
356 : void clear_fill_username();
357 : static const int kFillUsernameFieldNumber = 4;
358 : bool fill_username() const;
359 : void set_fill_username(bool value);
360 :
361 : // optional bool fill_oauth_scope = 5;
362 : void clear_fill_oauth_scope();
363 : static const int kFillOauthScopeFieldNumber = 5;
364 : bool fill_oauth_scope() const;
365 : void set_fill_oauth_scope(bool value);
366 :
367 : // optional .grpc.testing.CompressionType response_compression = 6;
368 : void clear_response_compression();
369 : static const int kResponseCompressionFieldNumber = 6;
370 : ::grpc::testing::CompressionType response_compression() const;
371 : void set_response_compression(::grpc::testing::CompressionType value);
372 :
373 : // optional .grpc.testing.EchoStatus response_status = 7;
374 : bool has_response_status() const;
375 : void clear_response_status();
376 : static const int kResponseStatusFieldNumber = 7;
377 : const ::grpc::testing::EchoStatus& response_status() const;
378 : ::grpc::testing::EchoStatus* mutable_response_status();
379 : ::grpc::testing::EchoStatus* release_response_status();
380 : void set_allocated_response_status(::grpc::testing::EchoStatus* response_status);
381 :
382 : // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest)
383 : private:
384 :
385 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
386 : bool _is_default_instance_;
387 : int response_type_;
388 : ::google::protobuf::int32 response_size_;
389 : ::grpc::testing::Payload* payload_;
390 : bool fill_username_;
391 : bool fill_oauth_scope_;
392 : int response_compression_;
393 : ::grpc::testing::EchoStatus* response_status_;
394 : mutable int _cached_size_;
395 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
396 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
397 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
398 :
399 : void InitAsDefaultInstance();
400 : static SimpleRequest* default_instance_;
401 : };
402 : // -------------------------------------------------------------------
403 :
404 : class SimpleResponse : public ::google::protobuf::Message {
405 : public:
406 : SimpleResponse();
407 : virtual ~SimpleResponse();
408 :
409 : SimpleResponse(const SimpleResponse& from);
410 :
411 : inline SimpleResponse& operator=(const SimpleResponse& from) {
412 : CopyFrom(from);
413 : return *this;
414 : }
415 :
416 : static const ::google::protobuf::Descriptor* descriptor();
417 : static const SimpleResponse& default_instance();
418 :
419 : void Swap(SimpleResponse* other);
420 :
421 : // implements Message ----------------------------------------------
422 :
423 0 : inline SimpleResponse* New() const { return New(NULL); }
424 :
425 : SimpleResponse* New(::google::protobuf::Arena* arena) const;
426 : void CopyFrom(const ::google::protobuf::Message& from);
427 : void MergeFrom(const ::google::protobuf::Message& from);
428 : void CopyFrom(const SimpleResponse& from);
429 : void MergeFrom(const SimpleResponse& from);
430 : void Clear();
431 : bool IsInitialized() const;
432 :
433 : int ByteSize() const;
434 : bool MergePartialFromCodedStream(
435 : ::google::protobuf::io::CodedInputStream* input);
436 : void SerializeWithCachedSizes(
437 : ::google::protobuf::io::CodedOutputStream* output) const;
438 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
439 0 : int GetCachedSize() const { return _cached_size_; }
440 : private:
441 : void SharedCtor();
442 : void SharedDtor();
443 : void SetCachedSize(int size) const;
444 : void InternalSwap(SimpleResponse* other);
445 : private:
446 4 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
447 8 : return _internal_metadata_.arena();
448 : }
449 : inline void* MaybeArenaPtr() const {
450 : return _internal_metadata_.raw_arena_ptr();
451 : }
452 : public:
453 :
454 : ::google::protobuf::Metadata GetMetadata() const;
455 :
456 : // nested types ----------------------------------------------------
457 :
458 : // accessors -------------------------------------------------------
459 :
460 : // optional .grpc.testing.Payload payload = 1;
461 : bool has_payload() const;
462 : void clear_payload();
463 : static const int kPayloadFieldNumber = 1;
464 : const ::grpc::testing::Payload& payload() const;
465 : ::grpc::testing::Payload* mutable_payload();
466 : ::grpc::testing::Payload* release_payload();
467 : void set_allocated_payload(::grpc::testing::Payload* payload);
468 :
469 : // optional string username = 2;
470 : void clear_username();
471 : static const int kUsernameFieldNumber = 2;
472 : const ::std::string& username() const;
473 : void set_username(const ::std::string& value);
474 : void set_username(const char* value);
475 : void set_username(const char* value, size_t size);
476 : ::std::string* mutable_username();
477 : ::std::string* release_username();
478 : void set_allocated_username(::std::string* username);
479 :
480 : // optional string oauth_scope = 3;
481 : void clear_oauth_scope();
482 : static const int kOauthScopeFieldNumber = 3;
483 : const ::std::string& oauth_scope() const;
484 : void set_oauth_scope(const ::std::string& value);
485 : void set_oauth_scope(const char* value);
486 : void set_oauth_scope(const char* value, size_t size);
487 : ::std::string* mutable_oauth_scope();
488 : ::std::string* release_oauth_scope();
489 : void set_allocated_oauth_scope(::std::string* oauth_scope);
490 :
491 : // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse)
492 : private:
493 :
494 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
495 : bool _is_default_instance_;
496 : ::grpc::testing::Payload* payload_;
497 : ::google::protobuf::internal::ArenaStringPtr username_;
498 : ::google::protobuf::internal::ArenaStringPtr oauth_scope_;
499 : mutable int _cached_size_;
500 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
501 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
502 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
503 :
504 : void InitAsDefaultInstance();
505 : static SimpleResponse* default_instance_;
506 : };
507 : // -------------------------------------------------------------------
508 :
509 : class StreamingInputCallRequest : public ::google::protobuf::Message {
510 : public:
511 : StreamingInputCallRequest();
512 : virtual ~StreamingInputCallRequest();
513 :
514 : StreamingInputCallRequest(const StreamingInputCallRequest& from);
515 :
516 : inline StreamingInputCallRequest& operator=(const StreamingInputCallRequest& from) {
517 : CopyFrom(from);
518 : return *this;
519 : }
520 :
521 : static const ::google::protobuf::Descriptor* descriptor();
522 : static const StreamingInputCallRequest& default_instance();
523 :
524 : void Swap(StreamingInputCallRequest* other);
525 :
526 : // implements Message ----------------------------------------------
527 :
528 0 : inline StreamingInputCallRequest* New() const { return New(NULL); }
529 :
530 : StreamingInputCallRequest* New(::google::protobuf::Arena* arena) const;
531 : void CopyFrom(const ::google::protobuf::Message& from);
532 : void MergeFrom(const ::google::protobuf::Message& from);
533 : void CopyFrom(const StreamingInputCallRequest& from);
534 : void MergeFrom(const StreamingInputCallRequest& from);
535 : void Clear();
536 : bool IsInitialized() const;
537 :
538 : int ByteSize() const;
539 : bool MergePartialFromCodedStream(
540 : ::google::protobuf::io::CodedInputStream* input);
541 : void SerializeWithCachedSizes(
542 : ::google::protobuf::io::CodedOutputStream* output) const;
543 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
544 0 : int GetCachedSize() const { return _cached_size_; }
545 : private:
546 : void SharedCtor();
547 : void SharedDtor();
548 : void SetCachedSize(int size) const;
549 : void InternalSwap(StreamingInputCallRequest* other);
550 : private:
551 0 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
552 0 : return _internal_metadata_.arena();
553 : }
554 : inline void* MaybeArenaPtr() const {
555 : return _internal_metadata_.raw_arena_ptr();
556 : }
557 : public:
558 :
559 : ::google::protobuf::Metadata GetMetadata() const;
560 :
561 : // nested types ----------------------------------------------------
562 :
563 : // accessors -------------------------------------------------------
564 :
565 : // optional .grpc.testing.Payload payload = 1;
566 : bool has_payload() const;
567 : void clear_payload();
568 : static const int kPayloadFieldNumber = 1;
569 : const ::grpc::testing::Payload& payload() const;
570 : ::grpc::testing::Payload* mutable_payload();
571 : ::grpc::testing::Payload* release_payload();
572 : void set_allocated_payload(::grpc::testing::Payload* payload);
573 :
574 : // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallRequest)
575 : private:
576 :
577 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
578 : bool _is_default_instance_;
579 : ::grpc::testing::Payload* payload_;
580 : mutable int _cached_size_;
581 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
582 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
583 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
584 :
585 : void InitAsDefaultInstance();
586 : static StreamingInputCallRequest* default_instance_;
587 : };
588 : // -------------------------------------------------------------------
589 :
590 : class StreamingInputCallResponse : public ::google::protobuf::Message {
591 : public:
592 : StreamingInputCallResponse();
593 : virtual ~StreamingInputCallResponse();
594 :
595 : StreamingInputCallResponse(const StreamingInputCallResponse& from);
596 :
597 : inline StreamingInputCallResponse& operator=(const StreamingInputCallResponse& from) {
598 : CopyFrom(from);
599 : return *this;
600 : }
601 :
602 : static const ::google::protobuf::Descriptor* descriptor();
603 : static const StreamingInputCallResponse& default_instance();
604 :
605 : void Swap(StreamingInputCallResponse* other);
606 :
607 : // implements Message ----------------------------------------------
608 :
609 0 : inline StreamingInputCallResponse* New() const { return New(NULL); }
610 :
611 : StreamingInputCallResponse* New(::google::protobuf::Arena* arena) const;
612 : void CopyFrom(const ::google::protobuf::Message& from);
613 : void MergeFrom(const ::google::protobuf::Message& from);
614 : void CopyFrom(const StreamingInputCallResponse& from);
615 : void MergeFrom(const StreamingInputCallResponse& from);
616 : void Clear();
617 : bool IsInitialized() const;
618 :
619 : int ByteSize() const;
620 : bool MergePartialFromCodedStream(
621 : ::google::protobuf::io::CodedInputStream* input);
622 : void SerializeWithCachedSizes(
623 : ::google::protobuf::io::CodedOutputStream* output) const;
624 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
625 0 : int GetCachedSize() const { return _cached_size_; }
626 : private:
627 : void SharedCtor();
628 : void SharedDtor();
629 : void SetCachedSize(int size) const;
630 : void InternalSwap(StreamingInputCallResponse* other);
631 : private:
632 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
633 : return _internal_metadata_.arena();
634 : }
635 : inline void* MaybeArenaPtr() const {
636 : return _internal_metadata_.raw_arena_ptr();
637 : }
638 : public:
639 :
640 : ::google::protobuf::Metadata GetMetadata() const;
641 :
642 : // nested types ----------------------------------------------------
643 :
644 : // accessors -------------------------------------------------------
645 :
646 : // optional int32 aggregated_payload_size = 1;
647 : void clear_aggregated_payload_size();
648 : static const int kAggregatedPayloadSizeFieldNumber = 1;
649 : ::google::protobuf::int32 aggregated_payload_size() const;
650 : void set_aggregated_payload_size(::google::protobuf::int32 value);
651 :
652 : // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallResponse)
653 : private:
654 :
655 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
656 : bool _is_default_instance_;
657 : ::google::protobuf::int32 aggregated_payload_size_;
658 : mutable int _cached_size_;
659 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
660 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
661 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
662 :
663 : void InitAsDefaultInstance();
664 : static StreamingInputCallResponse* default_instance_;
665 : };
666 : // -------------------------------------------------------------------
667 :
668 : class ResponseParameters : public ::google::protobuf::Message {
669 : public:
670 : ResponseParameters();
671 : virtual ~ResponseParameters();
672 :
673 : ResponseParameters(const ResponseParameters& from);
674 :
675 : inline ResponseParameters& operator=(const ResponseParameters& from) {
676 : CopyFrom(from);
677 : return *this;
678 : }
679 :
680 : static const ::google::protobuf::Descriptor* descriptor();
681 : static const ResponseParameters& default_instance();
682 :
683 : void Swap(ResponseParameters* other);
684 :
685 : // implements Message ----------------------------------------------
686 :
687 0 : inline ResponseParameters* New() const { return New(NULL); }
688 :
689 : ResponseParameters* New(::google::protobuf::Arena* arena) const;
690 : void CopyFrom(const ::google::protobuf::Message& from);
691 : void MergeFrom(const ::google::protobuf::Message& from);
692 : void CopyFrom(const ResponseParameters& from);
693 : void MergeFrom(const ResponseParameters& from);
694 : void Clear();
695 : bool IsInitialized() const;
696 :
697 : int ByteSize() const;
698 : bool MergePartialFromCodedStream(
699 : ::google::protobuf::io::CodedInputStream* input);
700 : void SerializeWithCachedSizes(
701 : ::google::protobuf::io::CodedOutputStream* output) const;
702 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
703 0 : int GetCachedSize() const { return _cached_size_; }
704 : private:
705 : void SharedCtor();
706 : void SharedDtor();
707 : void SetCachedSize(int size) const;
708 : void InternalSwap(ResponseParameters* other);
709 : private:
710 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
711 : return _internal_metadata_.arena();
712 : }
713 : inline void* MaybeArenaPtr() const {
714 : return _internal_metadata_.raw_arena_ptr();
715 : }
716 : public:
717 :
718 : ::google::protobuf::Metadata GetMetadata() const;
719 :
720 : // nested types ----------------------------------------------------
721 :
722 : // accessors -------------------------------------------------------
723 :
724 : // optional int32 size = 1;
725 : void clear_size();
726 : static const int kSizeFieldNumber = 1;
727 : ::google::protobuf::int32 size() const;
728 : void set_size(::google::protobuf::int32 value);
729 :
730 : // optional int32 interval_us = 2;
731 : void clear_interval_us();
732 : static const int kIntervalUsFieldNumber = 2;
733 : ::google::protobuf::int32 interval_us() const;
734 : void set_interval_us(::google::protobuf::int32 value);
735 :
736 : // @@protoc_insertion_point(class_scope:grpc.testing.ResponseParameters)
737 : private:
738 :
739 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
740 : bool _is_default_instance_;
741 : ::google::protobuf::int32 size_;
742 : ::google::protobuf::int32 interval_us_;
743 : mutable int _cached_size_;
744 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
745 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
746 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
747 :
748 : void InitAsDefaultInstance();
749 : static ResponseParameters* default_instance_;
750 : };
751 : // -------------------------------------------------------------------
752 :
753 : class StreamingOutputCallRequest : public ::google::protobuf::Message {
754 : public:
755 : StreamingOutputCallRequest();
756 : virtual ~StreamingOutputCallRequest();
757 :
758 : StreamingOutputCallRequest(const StreamingOutputCallRequest& from);
759 :
760 : inline StreamingOutputCallRequest& operator=(const StreamingOutputCallRequest& from) {
761 : CopyFrom(from);
762 : return *this;
763 : }
764 :
765 : static const ::google::protobuf::Descriptor* descriptor();
766 : static const StreamingOutputCallRequest& default_instance();
767 :
768 : void Swap(StreamingOutputCallRequest* other);
769 :
770 : // implements Message ----------------------------------------------
771 :
772 0 : inline StreamingOutputCallRequest* New() const { return New(NULL); }
773 :
774 : StreamingOutputCallRequest* New(::google::protobuf::Arena* arena) const;
775 : void CopyFrom(const ::google::protobuf::Message& from);
776 : void MergeFrom(const ::google::protobuf::Message& from);
777 : void CopyFrom(const StreamingOutputCallRequest& from);
778 : void MergeFrom(const StreamingOutputCallRequest& from);
779 : void Clear();
780 : bool IsInitialized() const;
781 :
782 : int ByteSize() const;
783 : bool MergePartialFromCodedStream(
784 : ::google::protobuf::io::CodedInputStream* input);
785 : void SerializeWithCachedSizes(
786 : ::google::protobuf::io::CodedOutputStream* output) const;
787 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
788 0 : int GetCachedSize() const { return _cached_size_; }
789 : private:
790 : void SharedCtor();
791 : void SharedDtor();
792 : void SetCachedSize(int size) const;
793 : void InternalSwap(StreamingOutputCallRequest* other);
794 : private:
795 0 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
796 0 : return _internal_metadata_.arena();
797 : }
798 : inline void* MaybeArenaPtr() const {
799 : return _internal_metadata_.raw_arena_ptr();
800 : }
801 : public:
802 :
803 : ::google::protobuf::Metadata GetMetadata() const;
804 :
805 : // nested types ----------------------------------------------------
806 :
807 : // accessors -------------------------------------------------------
808 :
809 : // optional .grpc.testing.PayloadType response_type = 1;
810 : void clear_response_type();
811 : static const int kResponseTypeFieldNumber = 1;
812 : ::grpc::testing::PayloadType response_type() const;
813 : void set_response_type(::grpc::testing::PayloadType value);
814 :
815 : // repeated .grpc.testing.ResponseParameters response_parameters = 2;
816 : int response_parameters_size() const;
817 : void clear_response_parameters();
818 : static const int kResponseParametersFieldNumber = 2;
819 : const ::grpc::testing::ResponseParameters& response_parameters(int index) const;
820 : ::grpc::testing::ResponseParameters* mutable_response_parameters(int index);
821 : ::grpc::testing::ResponseParameters* add_response_parameters();
822 : ::google::protobuf::RepeatedPtrField< ::grpc::testing::ResponseParameters >*
823 : mutable_response_parameters();
824 : const ::google::protobuf::RepeatedPtrField< ::grpc::testing::ResponseParameters >&
825 : response_parameters() const;
826 :
827 : // optional .grpc.testing.Payload payload = 3;
828 : bool has_payload() const;
829 : void clear_payload();
830 : static const int kPayloadFieldNumber = 3;
831 : const ::grpc::testing::Payload& payload() const;
832 : ::grpc::testing::Payload* mutable_payload();
833 : ::grpc::testing::Payload* release_payload();
834 : void set_allocated_payload(::grpc::testing::Payload* payload);
835 :
836 : // optional .grpc.testing.CompressionType response_compression = 6;
837 : void clear_response_compression();
838 : static const int kResponseCompressionFieldNumber = 6;
839 : ::grpc::testing::CompressionType response_compression() const;
840 : void set_response_compression(::grpc::testing::CompressionType value);
841 :
842 : // optional .grpc.testing.EchoStatus response_status = 7;
843 : bool has_response_status() const;
844 : void clear_response_status();
845 : static const int kResponseStatusFieldNumber = 7;
846 : const ::grpc::testing::EchoStatus& response_status() const;
847 : ::grpc::testing::EchoStatus* mutable_response_status();
848 : ::grpc::testing::EchoStatus* release_response_status();
849 : void set_allocated_response_status(::grpc::testing::EchoStatus* response_status);
850 :
851 : // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallRequest)
852 : private:
853 :
854 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
855 : bool _is_default_instance_;
856 : ::google::protobuf::RepeatedPtrField< ::grpc::testing::ResponseParameters > response_parameters_;
857 : int response_type_;
858 : int response_compression_;
859 : ::grpc::testing::Payload* payload_;
860 : ::grpc::testing::EchoStatus* response_status_;
861 : mutable int _cached_size_;
862 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
863 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
864 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
865 :
866 : void InitAsDefaultInstance();
867 : static StreamingOutputCallRequest* default_instance_;
868 : };
869 : // -------------------------------------------------------------------
870 :
871 : class StreamingOutputCallResponse : public ::google::protobuf::Message {
872 : public:
873 : StreamingOutputCallResponse();
874 : virtual ~StreamingOutputCallResponse();
875 :
876 : StreamingOutputCallResponse(const StreamingOutputCallResponse& from);
877 :
878 : inline StreamingOutputCallResponse& operator=(const StreamingOutputCallResponse& from) {
879 : CopyFrom(from);
880 : return *this;
881 : }
882 :
883 : static const ::google::protobuf::Descriptor* descriptor();
884 : static const StreamingOutputCallResponse& default_instance();
885 :
886 : void Swap(StreamingOutputCallResponse* other);
887 :
888 : // implements Message ----------------------------------------------
889 :
890 0 : inline StreamingOutputCallResponse* New() const { return New(NULL); }
891 :
892 : StreamingOutputCallResponse* New(::google::protobuf::Arena* arena) const;
893 : void CopyFrom(const ::google::protobuf::Message& from);
894 : void MergeFrom(const ::google::protobuf::Message& from);
895 : void CopyFrom(const StreamingOutputCallResponse& from);
896 : void MergeFrom(const StreamingOutputCallResponse& from);
897 : void Clear();
898 : bool IsInitialized() const;
899 :
900 : int ByteSize() const;
901 : bool MergePartialFromCodedStream(
902 : ::google::protobuf::io::CodedInputStream* input);
903 : void SerializeWithCachedSizes(
904 : ::google::protobuf::io::CodedOutputStream* output) const;
905 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
906 0 : int GetCachedSize() const { return _cached_size_; }
907 : private:
908 : void SharedCtor();
909 : void SharedDtor();
910 : void SetCachedSize(int size) const;
911 : void InternalSwap(StreamingOutputCallResponse* other);
912 : private:
913 0 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
914 0 : return _internal_metadata_.arena();
915 : }
916 : inline void* MaybeArenaPtr() const {
917 : return _internal_metadata_.raw_arena_ptr();
918 : }
919 : public:
920 :
921 : ::google::protobuf::Metadata GetMetadata() const;
922 :
923 : // nested types ----------------------------------------------------
924 :
925 : // accessors -------------------------------------------------------
926 :
927 : // optional .grpc.testing.Payload payload = 1;
928 : bool has_payload() const;
929 : void clear_payload();
930 : static const int kPayloadFieldNumber = 1;
931 : const ::grpc::testing::Payload& payload() const;
932 : ::grpc::testing::Payload* mutable_payload();
933 : ::grpc::testing::Payload* release_payload();
934 : void set_allocated_payload(::grpc::testing::Payload* payload);
935 :
936 : // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallResponse)
937 : private:
938 :
939 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
940 : bool _is_default_instance_;
941 : ::grpc::testing::Payload* payload_;
942 : mutable int _cached_size_;
943 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
944 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
945 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
946 :
947 : void InitAsDefaultInstance();
948 : static StreamingOutputCallResponse* default_instance_;
949 : };
950 : // -------------------------------------------------------------------
951 :
952 : class ReconnectInfo : public ::google::protobuf::Message {
953 : public:
954 : ReconnectInfo();
955 : virtual ~ReconnectInfo();
956 :
957 : ReconnectInfo(const ReconnectInfo& from);
958 :
959 : inline ReconnectInfo& operator=(const ReconnectInfo& from) {
960 : CopyFrom(from);
961 : return *this;
962 : }
963 :
964 : static const ::google::protobuf::Descriptor* descriptor();
965 : static const ReconnectInfo& default_instance();
966 :
967 : void Swap(ReconnectInfo* other);
968 :
969 : // implements Message ----------------------------------------------
970 :
971 0 : inline ReconnectInfo* New() const { return New(NULL); }
972 :
973 : ReconnectInfo* New(::google::protobuf::Arena* arena) const;
974 : void CopyFrom(const ::google::protobuf::Message& from);
975 : void MergeFrom(const ::google::protobuf::Message& from);
976 : void CopyFrom(const ReconnectInfo& from);
977 : void MergeFrom(const ReconnectInfo& from);
978 : void Clear();
979 : bool IsInitialized() const;
980 :
981 : int ByteSize() const;
982 : bool MergePartialFromCodedStream(
983 : ::google::protobuf::io::CodedInputStream* input);
984 : void SerializeWithCachedSizes(
985 : ::google::protobuf::io::CodedOutputStream* output) const;
986 : ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
987 0 : int GetCachedSize() const { return _cached_size_; }
988 : private:
989 : void SharedCtor();
990 : void SharedDtor();
991 : void SetCachedSize(int size) const;
992 : void InternalSwap(ReconnectInfo* other);
993 : private:
994 : inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
995 : return _internal_metadata_.arena();
996 : }
997 : inline void* MaybeArenaPtr() const {
998 : return _internal_metadata_.raw_arena_ptr();
999 : }
1000 : public:
1001 :
1002 : ::google::protobuf::Metadata GetMetadata() const;
1003 :
1004 : // nested types ----------------------------------------------------
1005 :
1006 : // accessors -------------------------------------------------------
1007 :
1008 : // optional bool passed = 1;
1009 : void clear_passed();
1010 : static const int kPassedFieldNumber = 1;
1011 : bool passed() const;
1012 : void set_passed(bool value);
1013 :
1014 : // repeated int32 backoff_ms = 2;
1015 : int backoff_ms_size() const;
1016 : void clear_backoff_ms();
1017 : static const int kBackoffMsFieldNumber = 2;
1018 : ::google::protobuf::int32 backoff_ms(int index) const;
1019 : void set_backoff_ms(int index, ::google::protobuf::int32 value);
1020 : void add_backoff_ms(::google::protobuf::int32 value);
1021 : const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1022 : backoff_ms() const;
1023 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1024 : mutable_backoff_ms();
1025 :
1026 : // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectInfo)
1027 : private:
1028 :
1029 : ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1030 : bool _is_default_instance_;
1031 : ::google::protobuf::RepeatedField< ::google::protobuf::int32 > backoff_ms_;
1032 : mutable int _backoff_ms_cached_byte_size_;
1033 : bool passed_;
1034 : mutable int _cached_size_;
1035 : friend void protobuf_AddDesc_test_2fproto_2fmessages_2eproto();
1036 : friend void protobuf_AssignDesc_test_2fproto_2fmessages_2eproto();
1037 : friend void protobuf_ShutdownFile_test_2fproto_2fmessages_2eproto();
1038 :
1039 : void InitAsDefaultInstance();
1040 : static ReconnectInfo* default_instance_;
1041 : };
1042 : // ===================================================================
1043 :
1044 :
1045 : // ===================================================================
1046 :
1047 : #if !PROTOBUF_INLINE_NOT_IN_HEADERS
1048 : // Payload
1049 :
1050 : // optional .grpc.testing.PayloadType type = 1;
1051 : inline void Payload::clear_type() {
1052 : type_ = 0;
1053 : }
1054 32 : inline ::grpc::testing::PayloadType Payload::type() const {
1055 : // @@protoc_insertion_point(field_get:grpc.testing.Payload.type)
1056 32 : return static_cast< ::grpc::testing::PayloadType >(type_);
1057 : }
1058 4 : inline void Payload::set_type(::grpc::testing::PayloadType value) {
1059 :
1060 4 : type_ = value;
1061 : // @@protoc_insertion_point(field_set:grpc.testing.Payload.type)
1062 4 : }
1063 :
1064 : // optional bytes body = 2;
1065 : inline void Payload::clear_body() {
1066 : body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1067 : }
1068 52 : inline const ::std::string& Payload::body() const {
1069 : // @@protoc_insertion_point(field_get:grpc.testing.Payload.body)
1070 52 : return body_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1071 : }
1072 0 : inline void Payload::set_body(const ::std::string& value) {
1073 :
1074 0 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1075 : // @@protoc_insertion_point(field_set:grpc.testing.Payload.body)
1076 0 : }
1077 : inline void Payload::set_body(const char* value) {
1078 :
1079 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1080 : // @@protoc_insertion_point(field_set_char:grpc.testing.Payload.body)
1081 : }
1082 8 : inline void Payload::set_body(const void* value, size_t size) {
1083 :
1084 8 : body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1085 16 : ::std::string(reinterpret_cast<const char*>(value), size));
1086 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.Payload.body)
1087 8 : }
1088 8 : inline ::std::string* Payload::mutable_body() {
1089 :
1090 : // @@protoc_insertion_point(field_mutable:grpc.testing.Payload.body)
1091 8 : return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1092 : }
1093 : inline ::std::string* Payload::release_body() {
1094 :
1095 : return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1096 : }
1097 : inline void Payload::set_allocated_body(::std::string* body) {
1098 : if (body != NULL) {
1099 :
1100 : } else {
1101 :
1102 : }
1103 : body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body);
1104 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.Payload.body)
1105 : }
1106 :
1107 : // -------------------------------------------------------------------
1108 :
1109 : // EchoStatus
1110 :
1111 : // optional int32 code = 1;
1112 : inline void EchoStatus::clear_code() {
1113 : code_ = 0;
1114 : }
1115 0 : inline ::google::protobuf::int32 EchoStatus::code() const {
1116 : // @@protoc_insertion_point(field_get:grpc.testing.EchoStatus.code)
1117 0 : return code_;
1118 : }
1119 0 : inline void EchoStatus::set_code(::google::protobuf::int32 value) {
1120 :
1121 0 : code_ = value;
1122 : // @@protoc_insertion_point(field_set:grpc.testing.EchoStatus.code)
1123 0 : }
1124 :
1125 : // optional string message = 2;
1126 : inline void EchoStatus::clear_message() {
1127 : message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1128 : }
1129 0 : inline const ::std::string& EchoStatus::message() const {
1130 : // @@protoc_insertion_point(field_get:grpc.testing.EchoStatus.message)
1131 0 : return message_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1132 : }
1133 0 : inline void EchoStatus::set_message(const ::std::string& value) {
1134 :
1135 0 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1136 : // @@protoc_insertion_point(field_set:grpc.testing.EchoStatus.message)
1137 0 : }
1138 : inline void EchoStatus::set_message(const char* value) {
1139 :
1140 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1141 : // @@protoc_insertion_point(field_set_char:grpc.testing.EchoStatus.message)
1142 : }
1143 : inline void EchoStatus::set_message(const char* value, size_t size) {
1144 :
1145 : message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1146 : ::std::string(reinterpret_cast<const char*>(value), size));
1147 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.EchoStatus.message)
1148 : }
1149 0 : inline ::std::string* EchoStatus::mutable_message() {
1150 :
1151 : // @@protoc_insertion_point(field_mutable:grpc.testing.EchoStatus.message)
1152 0 : return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1153 : }
1154 : inline ::std::string* EchoStatus::release_message() {
1155 :
1156 : return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1157 : }
1158 : inline void EchoStatus::set_allocated_message(::std::string* message) {
1159 : if (message != NULL) {
1160 :
1161 : } else {
1162 :
1163 : }
1164 : message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
1165 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.EchoStatus.message)
1166 : }
1167 :
1168 : // -------------------------------------------------------------------
1169 :
1170 : // SimpleRequest
1171 :
1172 : // optional .grpc.testing.PayloadType response_type = 1;
1173 : inline void SimpleRequest::clear_response_type() {
1174 : response_type_ = 0;
1175 : }
1176 24 : inline ::grpc::testing::PayloadType SimpleRequest::response_type() const {
1177 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_type)
1178 24 : return static_cast< ::grpc::testing::PayloadType >(response_type_);
1179 : }
1180 4 : inline void SimpleRequest::set_response_type(::grpc::testing::PayloadType value) {
1181 :
1182 4 : response_type_ = value;
1183 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.response_type)
1184 4 : }
1185 :
1186 : // optional int32 response_size = 2;
1187 : inline void SimpleRequest::clear_response_size() {
1188 : response_size_ = 0;
1189 : }
1190 32 : inline ::google::protobuf::int32 SimpleRequest::response_size() const {
1191 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_size)
1192 32 : return response_size_;
1193 : }
1194 4 : inline void SimpleRequest::set_response_size(::google::protobuf::int32 value) {
1195 :
1196 4 : response_size_ = value;
1197 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.response_size)
1198 4 : }
1199 :
1200 : // optional .grpc.testing.Payload payload = 3;
1201 12 : inline bool SimpleRequest::has_payload() const {
1202 12 : return !_is_default_instance_ && payload_ != NULL;
1203 : }
1204 : inline void SimpleRequest::clear_payload() {
1205 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
1206 : payload_ = NULL;
1207 : }
1208 0 : inline const ::grpc::testing::Payload& SimpleRequest::payload() const {
1209 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.payload)
1210 0 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
1211 : }
1212 8 : inline ::grpc::testing::Payload* SimpleRequest::mutable_payload() {
1213 :
1214 8 : if (payload_ == NULL) {
1215 8 : payload_ = new ::grpc::testing::Payload;
1216 : }
1217 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleRequest.payload)
1218 8 : return payload_;
1219 : }
1220 : inline ::grpc::testing::Payload* SimpleRequest::release_payload() {
1221 :
1222 : ::grpc::testing::Payload* temp = payload_;
1223 : payload_ = NULL;
1224 : return temp;
1225 : }
1226 : inline void SimpleRequest::set_allocated_payload(::grpc::testing::Payload* payload) {
1227 : delete payload_;
1228 : payload_ = payload;
1229 : if (payload) {
1230 :
1231 : } else {
1232 :
1233 : }
1234 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleRequest.payload)
1235 : }
1236 :
1237 : // optional bool fill_username = 4;
1238 : inline void SimpleRequest::clear_fill_username() {
1239 : fill_username_ = false;
1240 : }
1241 12 : inline bool SimpleRequest::fill_username() const {
1242 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.fill_username)
1243 12 : return fill_username_;
1244 : }
1245 0 : inline void SimpleRequest::set_fill_username(bool value) {
1246 :
1247 0 : fill_username_ = value;
1248 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.fill_username)
1249 0 : }
1250 :
1251 : // optional bool fill_oauth_scope = 5;
1252 : inline void SimpleRequest::clear_fill_oauth_scope() {
1253 : fill_oauth_scope_ = false;
1254 : }
1255 12 : inline bool SimpleRequest::fill_oauth_scope() const {
1256 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.fill_oauth_scope)
1257 12 : return fill_oauth_scope_;
1258 : }
1259 0 : inline void SimpleRequest::set_fill_oauth_scope(bool value) {
1260 :
1261 0 : fill_oauth_scope_ = value;
1262 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.fill_oauth_scope)
1263 0 : }
1264 :
1265 : // optional .grpc.testing.CompressionType response_compression = 6;
1266 : inline void SimpleRequest::clear_response_compression() {
1267 : response_compression_ = 0;
1268 : }
1269 24 : inline ::grpc::testing::CompressionType SimpleRequest::response_compression() const {
1270 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_compression)
1271 24 : return static_cast< ::grpc::testing::CompressionType >(response_compression_);
1272 : }
1273 0 : inline void SimpleRequest::set_response_compression(::grpc::testing::CompressionType value) {
1274 :
1275 0 : response_compression_ = value;
1276 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleRequest.response_compression)
1277 0 : }
1278 :
1279 : // optional .grpc.testing.EchoStatus response_status = 7;
1280 16 : inline bool SimpleRequest::has_response_status() const {
1281 16 : return !_is_default_instance_ && response_status_ != NULL;
1282 : }
1283 : inline void SimpleRequest::clear_response_status() {
1284 : if (GetArenaNoVirtual() == NULL && response_status_ != NULL) delete response_status_;
1285 : response_status_ = NULL;
1286 : }
1287 0 : inline const ::grpc::testing::EchoStatus& SimpleRequest::response_status() const {
1288 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleRequest.response_status)
1289 0 : return response_status_ != NULL ? *response_status_ : *default_instance_->response_status_;
1290 : }
1291 0 : inline ::grpc::testing::EchoStatus* SimpleRequest::mutable_response_status() {
1292 :
1293 0 : if (response_status_ == NULL) {
1294 0 : response_status_ = new ::grpc::testing::EchoStatus;
1295 : }
1296 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleRequest.response_status)
1297 0 : return response_status_;
1298 : }
1299 : inline ::grpc::testing::EchoStatus* SimpleRequest::release_response_status() {
1300 :
1301 : ::grpc::testing::EchoStatus* temp = response_status_;
1302 : response_status_ = NULL;
1303 : return temp;
1304 : }
1305 : inline void SimpleRequest::set_allocated_response_status(::grpc::testing::EchoStatus* response_status) {
1306 : delete response_status_;
1307 : response_status_ = response_status;
1308 : if (response_status) {
1309 :
1310 : } else {
1311 :
1312 : }
1313 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleRequest.response_status)
1314 : }
1315 :
1316 : // -------------------------------------------------------------------
1317 :
1318 : // SimpleResponse
1319 :
1320 : // optional .grpc.testing.Payload payload = 1;
1321 12 : inline bool SimpleResponse::has_payload() const {
1322 12 : return !_is_default_instance_ && payload_ != NULL;
1323 : }
1324 : inline void SimpleResponse::clear_payload() {
1325 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
1326 : payload_ = NULL;
1327 : }
1328 12 : inline const ::grpc::testing::Payload& SimpleResponse::payload() const {
1329 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleResponse.payload)
1330 12 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
1331 : }
1332 8 : inline ::grpc::testing::Payload* SimpleResponse::mutable_payload() {
1333 :
1334 8 : if (payload_ == NULL) {
1335 8 : payload_ = new ::grpc::testing::Payload;
1336 : }
1337 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleResponse.payload)
1338 8 : return payload_;
1339 : }
1340 : inline ::grpc::testing::Payload* SimpleResponse::release_payload() {
1341 :
1342 : ::grpc::testing::Payload* temp = payload_;
1343 : payload_ = NULL;
1344 : return temp;
1345 : }
1346 : inline void SimpleResponse::set_allocated_payload(::grpc::testing::Payload* payload) {
1347 : delete payload_;
1348 : payload_ = payload;
1349 : if (payload) {
1350 :
1351 : } else {
1352 :
1353 : }
1354 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleResponse.payload)
1355 : }
1356 :
1357 : // optional string username = 2;
1358 : inline void SimpleResponse::clear_username() {
1359 : username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1360 : }
1361 12 : inline const ::std::string& SimpleResponse::username() const {
1362 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleResponse.username)
1363 12 : return username_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1364 : }
1365 : inline void SimpleResponse::set_username(const ::std::string& value) {
1366 :
1367 : username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1368 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleResponse.username)
1369 : }
1370 : inline void SimpleResponse::set_username(const char* value) {
1371 :
1372 : username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1373 : // @@protoc_insertion_point(field_set_char:grpc.testing.SimpleResponse.username)
1374 : }
1375 : inline void SimpleResponse::set_username(const char* value, size_t size) {
1376 :
1377 : username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1378 : ::std::string(reinterpret_cast<const char*>(value), size));
1379 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SimpleResponse.username)
1380 : }
1381 0 : inline ::std::string* SimpleResponse::mutable_username() {
1382 :
1383 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleResponse.username)
1384 0 : return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1385 : }
1386 : inline ::std::string* SimpleResponse::release_username() {
1387 :
1388 : return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1389 : }
1390 : inline void SimpleResponse::set_allocated_username(::std::string* username) {
1391 : if (username != NULL) {
1392 :
1393 : } else {
1394 :
1395 : }
1396 : username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username);
1397 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleResponse.username)
1398 : }
1399 :
1400 : // optional string oauth_scope = 3;
1401 : inline void SimpleResponse::clear_oauth_scope() {
1402 : oauth_scope_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1403 : }
1404 12 : inline const ::std::string& SimpleResponse::oauth_scope() const {
1405 : // @@protoc_insertion_point(field_get:grpc.testing.SimpleResponse.oauth_scope)
1406 12 : return oauth_scope_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1407 : }
1408 : inline void SimpleResponse::set_oauth_scope(const ::std::string& value) {
1409 :
1410 : oauth_scope_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1411 : // @@protoc_insertion_point(field_set:grpc.testing.SimpleResponse.oauth_scope)
1412 : }
1413 : inline void SimpleResponse::set_oauth_scope(const char* value) {
1414 :
1415 : oauth_scope_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1416 : // @@protoc_insertion_point(field_set_char:grpc.testing.SimpleResponse.oauth_scope)
1417 : }
1418 : inline void SimpleResponse::set_oauth_scope(const char* value, size_t size) {
1419 :
1420 : oauth_scope_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1421 : ::std::string(reinterpret_cast<const char*>(value), size));
1422 : // @@protoc_insertion_point(field_set_pointer:grpc.testing.SimpleResponse.oauth_scope)
1423 : }
1424 0 : inline ::std::string* SimpleResponse::mutable_oauth_scope() {
1425 :
1426 : // @@protoc_insertion_point(field_mutable:grpc.testing.SimpleResponse.oauth_scope)
1427 0 : return oauth_scope_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1428 : }
1429 : inline ::std::string* SimpleResponse::release_oauth_scope() {
1430 :
1431 : return oauth_scope_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1432 : }
1433 : inline void SimpleResponse::set_allocated_oauth_scope(::std::string* oauth_scope) {
1434 : if (oauth_scope != NULL) {
1435 :
1436 : } else {
1437 :
1438 : }
1439 : oauth_scope_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oauth_scope);
1440 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.SimpleResponse.oauth_scope)
1441 : }
1442 :
1443 : // -------------------------------------------------------------------
1444 :
1445 : // StreamingInputCallRequest
1446 :
1447 : // optional .grpc.testing.Payload payload = 1;
1448 0 : inline bool StreamingInputCallRequest::has_payload() const {
1449 0 : return !_is_default_instance_ && payload_ != NULL;
1450 : }
1451 : inline void StreamingInputCallRequest::clear_payload() {
1452 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
1453 : payload_ = NULL;
1454 : }
1455 0 : inline const ::grpc::testing::Payload& StreamingInputCallRequest::payload() const {
1456 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingInputCallRequest.payload)
1457 0 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
1458 : }
1459 0 : inline ::grpc::testing::Payload* StreamingInputCallRequest::mutable_payload() {
1460 :
1461 0 : if (payload_ == NULL) {
1462 0 : payload_ = new ::grpc::testing::Payload;
1463 : }
1464 : // @@protoc_insertion_point(field_mutable:grpc.testing.StreamingInputCallRequest.payload)
1465 0 : return payload_;
1466 : }
1467 : inline ::grpc::testing::Payload* StreamingInputCallRequest::release_payload() {
1468 :
1469 : ::grpc::testing::Payload* temp = payload_;
1470 : payload_ = NULL;
1471 : return temp;
1472 : }
1473 : inline void StreamingInputCallRequest::set_allocated_payload(::grpc::testing::Payload* payload) {
1474 : delete payload_;
1475 : payload_ = payload;
1476 : if (payload) {
1477 :
1478 : } else {
1479 :
1480 : }
1481 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.StreamingInputCallRequest.payload)
1482 : }
1483 :
1484 : // -------------------------------------------------------------------
1485 :
1486 : // StreamingInputCallResponse
1487 :
1488 : // optional int32 aggregated_payload_size = 1;
1489 : inline void StreamingInputCallResponse::clear_aggregated_payload_size() {
1490 : aggregated_payload_size_ = 0;
1491 : }
1492 0 : inline ::google::protobuf::int32 StreamingInputCallResponse::aggregated_payload_size() const {
1493 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingInputCallResponse.aggregated_payload_size)
1494 0 : return aggregated_payload_size_;
1495 : }
1496 0 : inline void StreamingInputCallResponse::set_aggregated_payload_size(::google::protobuf::int32 value) {
1497 :
1498 0 : aggregated_payload_size_ = value;
1499 : // @@protoc_insertion_point(field_set:grpc.testing.StreamingInputCallResponse.aggregated_payload_size)
1500 0 : }
1501 :
1502 : // -------------------------------------------------------------------
1503 :
1504 : // ResponseParameters
1505 :
1506 : // optional int32 size = 1;
1507 : inline void ResponseParameters::clear_size() {
1508 : size_ = 0;
1509 : }
1510 0 : inline ::google::protobuf::int32 ResponseParameters::size() const {
1511 : // @@protoc_insertion_point(field_get:grpc.testing.ResponseParameters.size)
1512 0 : return size_;
1513 : }
1514 0 : inline void ResponseParameters::set_size(::google::protobuf::int32 value) {
1515 :
1516 0 : size_ = value;
1517 : // @@protoc_insertion_point(field_set:grpc.testing.ResponseParameters.size)
1518 0 : }
1519 :
1520 : // optional int32 interval_us = 2;
1521 : inline void ResponseParameters::clear_interval_us() {
1522 : interval_us_ = 0;
1523 : }
1524 0 : inline ::google::protobuf::int32 ResponseParameters::interval_us() const {
1525 : // @@protoc_insertion_point(field_get:grpc.testing.ResponseParameters.interval_us)
1526 0 : return interval_us_;
1527 : }
1528 0 : inline void ResponseParameters::set_interval_us(::google::protobuf::int32 value) {
1529 :
1530 0 : interval_us_ = value;
1531 : // @@protoc_insertion_point(field_set:grpc.testing.ResponseParameters.interval_us)
1532 0 : }
1533 :
1534 : // -------------------------------------------------------------------
1535 :
1536 : // StreamingOutputCallRequest
1537 :
1538 : // optional .grpc.testing.PayloadType response_type = 1;
1539 : inline void StreamingOutputCallRequest::clear_response_type() {
1540 : response_type_ = 0;
1541 : }
1542 0 : inline ::grpc::testing::PayloadType StreamingOutputCallRequest::response_type() const {
1543 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallRequest.response_type)
1544 0 : return static_cast< ::grpc::testing::PayloadType >(response_type_);
1545 : }
1546 0 : inline void StreamingOutputCallRequest::set_response_type(::grpc::testing::PayloadType value) {
1547 :
1548 0 : response_type_ = value;
1549 : // @@protoc_insertion_point(field_set:grpc.testing.StreamingOutputCallRequest.response_type)
1550 0 : }
1551 :
1552 : // repeated .grpc.testing.ResponseParameters response_parameters = 2;
1553 0 : inline int StreamingOutputCallRequest::response_parameters_size() const {
1554 0 : return response_parameters_.size();
1555 : }
1556 : inline void StreamingOutputCallRequest::clear_response_parameters() {
1557 : response_parameters_.Clear();
1558 : }
1559 0 : inline const ::grpc::testing::ResponseParameters& StreamingOutputCallRequest::response_parameters(int index) const {
1560 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallRequest.response_parameters)
1561 0 : return response_parameters_.Get(index);
1562 : }
1563 : inline ::grpc::testing::ResponseParameters* StreamingOutputCallRequest::mutable_response_parameters(int index) {
1564 : // @@protoc_insertion_point(field_mutable:grpc.testing.StreamingOutputCallRequest.response_parameters)
1565 : return response_parameters_.Mutable(index);
1566 : }
1567 0 : inline ::grpc::testing::ResponseParameters* StreamingOutputCallRequest::add_response_parameters() {
1568 : // @@protoc_insertion_point(field_add:grpc.testing.StreamingOutputCallRequest.response_parameters)
1569 0 : return response_parameters_.Add();
1570 : }
1571 : inline ::google::protobuf::RepeatedPtrField< ::grpc::testing::ResponseParameters >*
1572 : StreamingOutputCallRequest::mutable_response_parameters() {
1573 : // @@protoc_insertion_point(field_mutable_list:grpc.testing.StreamingOutputCallRequest.response_parameters)
1574 : return &response_parameters_;
1575 : }
1576 : inline const ::google::protobuf::RepeatedPtrField< ::grpc::testing::ResponseParameters >&
1577 : StreamingOutputCallRequest::response_parameters() const {
1578 : // @@protoc_insertion_point(field_list:grpc.testing.StreamingOutputCallRequest.response_parameters)
1579 : return response_parameters_;
1580 : }
1581 :
1582 : // optional .grpc.testing.Payload payload = 3;
1583 0 : inline bool StreamingOutputCallRequest::has_payload() const {
1584 0 : return !_is_default_instance_ && payload_ != NULL;
1585 : }
1586 : inline void StreamingOutputCallRequest::clear_payload() {
1587 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
1588 : payload_ = NULL;
1589 : }
1590 0 : inline const ::grpc::testing::Payload& StreamingOutputCallRequest::payload() const {
1591 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallRequest.payload)
1592 0 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
1593 : }
1594 0 : inline ::grpc::testing::Payload* StreamingOutputCallRequest::mutable_payload() {
1595 :
1596 0 : if (payload_ == NULL) {
1597 0 : payload_ = new ::grpc::testing::Payload;
1598 : }
1599 : // @@protoc_insertion_point(field_mutable:grpc.testing.StreamingOutputCallRequest.payload)
1600 0 : return payload_;
1601 : }
1602 : inline ::grpc::testing::Payload* StreamingOutputCallRequest::release_payload() {
1603 :
1604 : ::grpc::testing::Payload* temp = payload_;
1605 : payload_ = NULL;
1606 : return temp;
1607 : }
1608 : inline void StreamingOutputCallRequest::set_allocated_payload(::grpc::testing::Payload* payload) {
1609 : delete payload_;
1610 : payload_ = payload;
1611 : if (payload) {
1612 :
1613 : } else {
1614 :
1615 : }
1616 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.StreamingOutputCallRequest.payload)
1617 : }
1618 :
1619 : // optional .grpc.testing.CompressionType response_compression = 6;
1620 : inline void StreamingOutputCallRequest::clear_response_compression() {
1621 : response_compression_ = 0;
1622 : }
1623 0 : inline ::grpc::testing::CompressionType StreamingOutputCallRequest::response_compression() const {
1624 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallRequest.response_compression)
1625 0 : return static_cast< ::grpc::testing::CompressionType >(response_compression_);
1626 : }
1627 0 : inline void StreamingOutputCallRequest::set_response_compression(::grpc::testing::CompressionType value) {
1628 :
1629 0 : response_compression_ = value;
1630 : // @@protoc_insertion_point(field_set:grpc.testing.StreamingOutputCallRequest.response_compression)
1631 0 : }
1632 :
1633 : // optional .grpc.testing.EchoStatus response_status = 7;
1634 0 : inline bool StreamingOutputCallRequest::has_response_status() const {
1635 0 : return !_is_default_instance_ && response_status_ != NULL;
1636 : }
1637 : inline void StreamingOutputCallRequest::clear_response_status() {
1638 : if (GetArenaNoVirtual() == NULL && response_status_ != NULL) delete response_status_;
1639 : response_status_ = NULL;
1640 : }
1641 0 : inline const ::grpc::testing::EchoStatus& StreamingOutputCallRequest::response_status() const {
1642 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallRequest.response_status)
1643 0 : return response_status_ != NULL ? *response_status_ : *default_instance_->response_status_;
1644 : }
1645 0 : inline ::grpc::testing::EchoStatus* StreamingOutputCallRequest::mutable_response_status() {
1646 :
1647 0 : if (response_status_ == NULL) {
1648 0 : response_status_ = new ::grpc::testing::EchoStatus;
1649 : }
1650 : // @@protoc_insertion_point(field_mutable:grpc.testing.StreamingOutputCallRequest.response_status)
1651 0 : return response_status_;
1652 : }
1653 : inline ::grpc::testing::EchoStatus* StreamingOutputCallRequest::release_response_status() {
1654 :
1655 : ::grpc::testing::EchoStatus* temp = response_status_;
1656 : response_status_ = NULL;
1657 : return temp;
1658 : }
1659 : inline void StreamingOutputCallRequest::set_allocated_response_status(::grpc::testing::EchoStatus* response_status) {
1660 : delete response_status_;
1661 : response_status_ = response_status;
1662 : if (response_status) {
1663 :
1664 : } else {
1665 :
1666 : }
1667 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.StreamingOutputCallRequest.response_status)
1668 : }
1669 :
1670 : // -------------------------------------------------------------------
1671 :
1672 : // StreamingOutputCallResponse
1673 :
1674 : // optional .grpc.testing.Payload payload = 1;
1675 0 : inline bool StreamingOutputCallResponse::has_payload() const {
1676 0 : return !_is_default_instance_ && payload_ != NULL;
1677 : }
1678 : inline void StreamingOutputCallResponse::clear_payload() {
1679 : if (GetArenaNoVirtual() == NULL && payload_ != NULL) delete payload_;
1680 : payload_ = NULL;
1681 : }
1682 0 : inline const ::grpc::testing::Payload& StreamingOutputCallResponse::payload() const {
1683 : // @@protoc_insertion_point(field_get:grpc.testing.StreamingOutputCallResponse.payload)
1684 0 : return payload_ != NULL ? *payload_ : *default_instance_->payload_;
1685 : }
1686 0 : inline ::grpc::testing::Payload* StreamingOutputCallResponse::mutable_payload() {
1687 :
1688 0 : if (payload_ == NULL) {
1689 0 : payload_ = new ::grpc::testing::Payload;
1690 : }
1691 : // @@protoc_insertion_point(field_mutable:grpc.testing.StreamingOutputCallResponse.payload)
1692 0 : return payload_;
1693 : }
1694 : inline ::grpc::testing::Payload* StreamingOutputCallResponse::release_payload() {
1695 :
1696 : ::grpc::testing::Payload* temp = payload_;
1697 : payload_ = NULL;
1698 : return temp;
1699 : }
1700 : inline void StreamingOutputCallResponse::set_allocated_payload(::grpc::testing::Payload* payload) {
1701 : delete payload_;
1702 : payload_ = payload;
1703 : if (payload) {
1704 :
1705 : } else {
1706 :
1707 : }
1708 : // @@protoc_insertion_point(field_set_allocated:grpc.testing.StreamingOutputCallResponse.payload)
1709 : }
1710 :
1711 : // -------------------------------------------------------------------
1712 :
1713 : // ReconnectInfo
1714 :
1715 : // optional bool passed = 1;
1716 : inline void ReconnectInfo::clear_passed() {
1717 : passed_ = false;
1718 : }
1719 0 : inline bool ReconnectInfo::passed() const {
1720 : // @@protoc_insertion_point(field_get:grpc.testing.ReconnectInfo.passed)
1721 0 : return passed_;
1722 : }
1723 0 : inline void ReconnectInfo::set_passed(bool value) {
1724 :
1725 0 : passed_ = value;
1726 : // @@protoc_insertion_point(field_set:grpc.testing.ReconnectInfo.passed)
1727 0 : }
1728 :
1729 : // repeated int32 backoff_ms = 2;
1730 0 : inline int ReconnectInfo::backoff_ms_size() const {
1731 0 : return backoff_ms_.size();
1732 : }
1733 : inline void ReconnectInfo::clear_backoff_ms() {
1734 : backoff_ms_.Clear();
1735 : }
1736 0 : inline ::google::protobuf::int32 ReconnectInfo::backoff_ms(int index) const {
1737 : // @@protoc_insertion_point(field_get:grpc.testing.ReconnectInfo.backoff_ms)
1738 0 : return backoff_ms_.Get(index);
1739 : }
1740 : inline void ReconnectInfo::set_backoff_ms(int index, ::google::protobuf::int32 value) {
1741 : backoff_ms_.Set(index, value);
1742 : // @@protoc_insertion_point(field_set:grpc.testing.ReconnectInfo.backoff_ms)
1743 : }
1744 : inline void ReconnectInfo::add_backoff_ms(::google::protobuf::int32 value) {
1745 : backoff_ms_.Add(value);
1746 : // @@protoc_insertion_point(field_add:grpc.testing.ReconnectInfo.backoff_ms)
1747 : }
1748 : inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1749 : ReconnectInfo::backoff_ms() const {
1750 : // @@protoc_insertion_point(field_list:grpc.testing.ReconnectInfo.backoff_ms)
1751 : return backoff_ms_;
1752 : }
1753 : inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1754 0 : ReconnectInfo::mutable_backoff_ms() {
1755 : // @@protoc_insertion_point(field_mutable_list:grpc.testing.ReconnectInfo.backoff_ms)
1756 0 : return &backoff_ms_;
1757 : }
1758 :
1759 : #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
1760 : // -------------------------------------------------------------------
1761 :
1762 : // -------------------------------------------------------------------
1763 :
1764 : // -------------------------------------------------------------------
1765 :
1766 : // -------------------------------------------------------------------
1767 :
1768 : // -------------------------------------------------------------------
1769 :
1770 : // -------------------------------------------------------------------
1771 :
1772 : // -------------------------------------------------------------------
1773 :
1774 : // -------------------------------------------------------------------
1775 :
1776 : // -------------------------------------------------------------------
1777 :
1778 :
1779 : // @@protoc_insertion_point(namespace_scope)
1780 :
1781 : } // namespace testing
1782 : } // namespace grpc
1783 :
1784 : #ifndef SWIG
1785 : namespace google {
1786 : namespace protobuf {
1787 :
1788 : template <> struct is_proto_enum< ::grpc::testing::PayloadType> : ::google::protobuf::internal::true_type {};
1789 : template <>
1790 : inline const EnumDescriptor* GetEnumDescriptor< ::grpc::testing::PayloadType>() {
1791 : return ::grpc::testing::PayloadType_descriptor();
1792 : }
1793 : template <> struct is_proto_enum< ::grpc::testing::CompressionType> : ::google::protobuf::internal::true_type {};
1794 : template <>
1795 : inline const EnumDescriptor* GetEnumDescriptor< ::grpc::testing::CompressionType>() {
1796 : return ::grpc::testing::CompressionType_descriptor();
1797 : }
1798 :
1799 : } // namespace protobuf
1800 : } // namespace google
1801 : #endif // SWIG
1802 :
1803 : // @@protoc_insertion_point(global_scope)
1804 :
1805 : #endif // PROTOBUF_test_2fproto_2fmessages_2eproto__INCLUDED
|