| 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 |
* Client-streaming request. |
| 13 |
* |
| 14 |
* Generated from protobuf message <code>grpc.testing.StreamingInputCallRequest</code> |
| 15 |
*/ |
| 16 |
class StreamingInputCallRequest extends \Google\Protobuf\Internal\Message |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Optional input payload sent along with the request. |
| 20 |
* |
| 21 |
* Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code> |
| 22 |
*/ |
| 23 |
protected $payload = null; |
| 24 |
/** |
| 25 |
* Whether the server should expect this request to be compressed. This field |
| 26 |
* is "nullable" in order to interoperate seamlessly with servers not able to |
| 27 |
* implement the full compression tests by introspecting the call to verify |
| 28 |
* the request's compression status. |
| 29 |
* |
| 30 |
* Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code> |
| 31 |
*/ |
| 32 |
protected $expect_compressed = null; |
| 33 |
|
| 34 |
/** |
| 35 |
* Constructor. |
| 36 |
* |
| 37 |
* @param array $data { |
| 38 |
* Optional. Data for populating the Message object. |
| 39 |
* |
| 40 |
* @type \Grpc\Testing\Payload $payload |
| 41 |
* Optional input payload sent along with the request. |
| 42 |
* @type \Grpc\Testing\BoolValue $expect_compressed |
| 43 |
* Whether the server should expect this request to be compressed. This field |
| 44 |
* is "nullable" in order to interoperate seamlessly with servers not able to |
| 45 |
* implement the full compression tests by introspecting the call to verify |
| 46 |
* the request's compression status. |
| 47 |
* } |
| 48 |
*/ |
| 49 |
public function __construct($data = NULL) { |
| 50 |
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); |
| 51 |
parent::__construct($data); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* Optional input payload sent along with the request. |
| 56 |
* |
| 57 |
* Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code> |
| 58 |
* @return \Grpc\Testing\Payload|null |
| 59 |
*/ |
| 60 |
public function getPayload() |
| 61 |
{ |
| 62 |
return $this->payload; |
| 63 |
} |
| 64 |
|
| 65 |
public function hasPayload() |
| 66 |
{ |
| 67 |
return isset($this->payload); |
| 68 |
} |
| 69 |
|
| 70 |
public function clearPayload() |
| 71 |
{ |
| 72 |
unset($this->payload); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* Optional input payload sent along with the request. |
| 77 |
* |
| 78 |
* Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code> |
| 79 |
* @param \Grpc\Testing\Payload $var |
| 80 |
* @return $this |
| 81 |
*/ |
| 82 |
public function setPayload($var) |
| 83 |
{ |
| 84 |
GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class); |
| 85 |
$this->payload = $var; |
| 86 |
|
| 87 |
return $this; |
| 88 |
} |
| 89 |
|
| 90 |
/** |
| 91 |
* Whether the server should expect this request to be compressed. This field |
| 92 |
* is "nullable" in order to interoperate seamlessly with servers not able to |
| 93 |
* implement the full compression tests by introspecting the call to verify |
| 94 |
* the request's compression status. |
| 95 |
* |
| 96 |
* Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code> |
| 97 |
* @return \Grpc\Testing\BoolValue|null |
| 98 |
*/ |
| 99 |
public function getExpectCompressed() |
| 100 |
{ |
| 101 |
return $this->expect_compressed; |
| 102 |
} |
| 103 |
|
| 104 |
public function hasExpectCompressed() |
| 105 |
{ |
| 106 |
return isset($this->expect_compressed); |
| 107 |
} |
| 108 |
|
| 109 |
public function clearExpectCompressed() |
| 110 |
{ |
| 111 |
unset($this->expect_compressed); |
| 112 |
} |
| 113 |
|
| 114 |
/** |
| 115 |
* Whether the server should expect this request to be compressed. This field |
| 116 |
* is "nullable" in order to interoperate seamlessly with servers not able to |
| 117 |
* implement the full compression tests by introspecting the call to verify |
| 118 |
* the request's compression status. |
| 119 |
* |
| 120 |
* Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code> |
| 121 |
* @param \Grpc\Testing\BoolValue $var |
| 122 |
* @return $this |
| 123 |
*/ |
| 124 |
public function setExpectCompressed($var) |
| 125 |
{ |
| 126 |
GPBUtil::checkMessage($var, \Grpc\Testing\BoolValue::class); |
| 127 |
$this->expect_compressed = $var; |
| 128 |
|
| 129 |
return $this; |
| 130 |
} |
| 131 |
|
| 132 |
} |
| 133 |
|