2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: src/proto/grpc/testing/messages.proto
5 namespace Grpc\Testing;
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
12 * Server-streaming response, as configured by the request and parameters.
14 * Generated from protobuf message <code>grpc.testing.StreamingOutputCallResponse</code>
16 class StreamingOutputCallResponse extends \Google\Protobuf\Internal\Message
19 * Payload to increase response size.
21 * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
23 protected $payload = null;
28 * @param array $data {
29 * Optional. Data for populating the Message object.
31 * @type \Grpc\Testing\Payload $payload
32 * Payload to increase response size.
35 public function __construct($data = NULL) {
36 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
37 parent::__construct($data);
41 * Payload to increase response size.
43 * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
44 * @return \Grpc\Testing\Payload|null
46 public function getPayload()
48 return $this->payload;
51 public function hasPayload()
53 return isset($this->payload);
56 public function clearPayload()
58 unset($this->payload);
62 * Payload to increase response size.
64 * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
65 * @param \Grpc\Testing\Payload $var
68 public function setPayload($var)
70 GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
71 $this->payload = $var;