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 * Configuration for a particular response.
14 * Generated from protobuf message <code>grpc.testing.ResponseParameters</code>
16 class ResponseParameters extends \Google\Protobuf\Internal\Message
19 * Desired payload sizes in responses from the server.
21 * Generated from protobuf field <code>int32 size = 1;</code>
25 * Desired interval between consecutive responses in the response stream in
28 * Generated from protobuf field <code>int32 interval_us = 2;</code>
30 protected $interval_us = 0;
32 * Whether to request the server to compress the response. This field is
33 * "nullable" in order to interoperate seamlessly with clients not able to
34 * implement the full compression tests by introspecting the call to verify
35 * the response's compression status.
37 * Generated from protobuf field <code>.grpc.testing.BoolValue compressed = 3;</code>
39 protected $compressed = null;
44 * @param array $data {
45 * Optional. Data for populating the Message object.
48 * Desired payload sizes in responses from the server.
49 * @type int $interval_us
50 * Desired interval between consecutive responses in the response stream in
52 * @type \Grpc\Testing\BoolValue $compressed
53 * Whether to request the server to compress the response. This field is
54 * "nullable" in order to interoperate seamlessly with clients not able to
55 * implement the full compression tests by introspecting the call to verify
56 * the response's compression status.
59 public function __construct($data = NULL) {
60 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
61 parent::__construct($data);
65 * Desired payload sizes in responses from the server.
67 * Generated from protobuf field <code>int32 size = 1;</code>
70 public function getSize()
76 * Desired payload sizes in responses from the server.
78 * Generated from protobuf field <code>int32 size = 1;</code>
82 public function setSize($var)
84 GPBUtil::checkInt32($var);
91 * Desired interval between consecutive responses in the response stream in
94 * Generated from protobuf field <code>int32 interval_us = 2;</code>
97 public function getIntervalUs()
99 return $this->interval_us;
103 * Desired interval between consecutive responses in the response stream in
106 * Generated from protobuf field <code>int32 interval_us = 2;</code>
110 public function setIntervalUs($var)
112 GPBUtil::checkInt32($var);
113 $this->interval_us = $var;
119 * Whether to request the server to compress the response. This field is
120 * "nullable" in order to interoperate seamlessly with clients not able to
121 * implement the full compression tests by introspecting the call to verify
122 * the response's compression status.
124 * Generated from protobuf field <code>.grpc.testing.BoolValue compressed = 3;</code>
125 * @return \Grpc\Testing\BoolValue|null
127 public function getCompressed()
129 return $this->compressed;
132 public function hasCompressed()
134 return isset($this->compressed);
137 public function clearCompressed()
139 unset($this->compressed);
143 * Whether to request the server to compress the response. This field is
144 * "nullable" in order to interoperate seamlessly with clients not able to
145 * implement the full compression tests by introspecting the call to verify
146 * the response's compression status.
148 * Generated from protobuf field <code>.grpc.testing.BoolValue compressed = 3;</code>
149 * @param \Grpc\Testing\BoolValue $var
152 public function setCompressed($var)
154 GPBUtil::checkMessage($var, \Grpc\Testing\BoolValue::class);
155 $this->compressed = $var;