1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/messages.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Client-streaming request.
13 *
14 * Generated from protobuf message <code>grpc.testing.StreamingInputCallRequest</code>
15 */
16class 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    private $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    private $expect_compressed = null;
33
34    public function __construct() {
35        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
36        parent::__construct();
37    }
38
39    /**
40     * Optional input payload sent along with the request.
41     *
42     * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
43     * @return \Grpc\Testing\Payload
44     */
45    public function getPayload()
46    {
47        return $this->payload;
48    }
49
50    /**
51     * Optional input payload sent along with the request.
52     *
53     * Generated from protobuf field <code>.grpc.testing.Payload payload = 1;</code>
54     * @param \Grpc\Testing\Payload $var
55     * @return $this
56     */
57    public function setPayload($var)
58    {
59        GPBUtil::checkMessage($var, \Grpc\Testing\Payload::class);
60        $this->payload = $var;
61
62        return $this;
63    }
64
65    /**
66     * Whether the server should expect this request to be compressed. This field
67     * is "nullable" in order to interoperate seamlessly with servers not able to
68     * implement the full compression tests by introspecting the call to verify
69     * the request's compression status.
70     *
71     * Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code>
72     * @return \Grpc\Testing\BoolValue
73     */
74    public function getExpectCompressed()
75    {
76        return $this->expect_compressed;
77    }
78
79    /**
80     * Whether the server should expect this request to be compressed. This field
81     * is "nullable" in order to interoperate seamlessly with servers not able to
82     * implement the full compression tests by introspecting the call to verify
83     * the request's compression status.
84     *
85     * Generated from protobuf field <code>.grpc.testing.BoolValue expect_compressed = 2;</code>
86     * @param \Grpc\Testing\BoolValue $var
87     * @return $this
88     */
89    public function setExpectCompressed($var)
90    {
91        GPBUtil::checkMessage($var, \Grpc\Testing\BoolValue::class);
92        $this->expect_compressed = $var;
93
94        return $this;
95    }
96
97}
98
99