Debian Codegraph @

src/php/tests/qps/generated_code/Grpc/Testing/StreamingInputCallRequest.php

raw
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
59 */
60 public function getPayload()
61 {
62 return $this->payload;
63 }
64
65 /**
66 * Optional input payload sent along with the request.
67 *
68 * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
69 * @param \Grpc\Testing\Payload $var
70 * @return $this
71 */
72 public function setPayload($var)
73 {
74 GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
75 $this->payload = $var;
76
77 return $this;
78 }
79
80 /**
81 * Whether the server should expect this request to be compressed. This field
82 * is "nullable" in order to interoperate seamlessly with servers not able to
83 * implement the full compression tests by introspecting the call to verify
84 * the request's compression status.
85 *
86 * Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code>
87 * @return \Grpc\Testing\BoolValue
88 */
89 public function getExpectCompressed()
90 {
91 return $this->expect_compressed;
92 }
93
94 /**
95 * Whether the server should expect this request to be compressed. This field
96 * is "nullable" in order to interoperate seamlessly with servers not able to
97 * implement the full compression tests by introspecting the call to verify
98 * the request's compression status.
99 *
100 * Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code>
101 * @param \Grpc\Testing\BoolValue $var
102 * @return $this
103 */
104 public function setExpectCompressed($var)
105 {
106 GPBUtil::checkMessage($var, \Grpc\Testing\BoolValue::class);
107 $this->expect_compressed = $var;
108
109 return $this;
110 }
111
112 }
113