Imported Upstream version 1.41.0
[platform/upstream/grpc.git] / src / php / tests / interop / Grpc / Testing / StreamingOutputCallResponse.php
1 <?php
2 # Generated by the protocol buffer compiler.  DO NOT EDIT!
3 # source: src/proto/grpc/testing/messages.proto
4
5 namespace Grpc\Testing;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12  * Server-streaming response, as configured by the request and parameters.
13  *
14  * Generated from protobuf message <code>grpc.testing.StreamingOutputCallResponse</code>
15  */
16 class StreamingOutputCallResponse extends \Google\Protobuf\Internal\Message
17 {
18     /**
19      * Payload to increase response size.
20      *
21      * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
22      */
23     protected $payload = null;
24
25     /**
26      * Constructor.
27      *
28      * @param array $data {
29      *     Optional. Data for populating the Message object.
30      *
31      *     @type \Grpc\Testing\Payload $payload
32      *           Payload to increase response size.
33      * }
34      */
35     public function __construct($data = NULL) {
36         \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
37         parent::__construct($data);
38     }
39
40     /**
41      * Payload to increase response size.
42      *
43      * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
44      * @return \Grpc\Testing\Payload|null
45      */
46     public function getPayload()
47     {
48         return $this->payload;
49     }
50
51     public function hasPayload()
52     {
53         return isset($this->payload);
54     }
55
56     public function clearPayload()
57     {
58         unset($this->payload);
59     }
60
61     /**
62      * Payload to increase response size.
63      *
64      * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
65      * @param \Grpc\Testing\Payload $var
66      * @return $this
67      */
68     public function setPayload($var)
69     {
70         GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
71         $this->payload = $var;
72
73         return $this;
74     }
75
76 }
77