• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 response.
13 *
14 * Generated from protobuf message <code>grpc.testing.StreamingInputCallResponse</code>
15 */
16class StreamingInputCallResponse extends \Google\Protobuf\Internal\Message
17{
18    /**
19     * Aggregated size of payloads received from the client.
20     *
21     * Generated from protobuf field <code>int32 aggregated_payload_size = 1;</code>
22     */
23    protected $aggregated_payload_size = 0;
24
25    /**
26     * Constructor.
27     *
28     * @param array $data {
29     *     Optional. Data for populating the Message object.
30     *
31     *     @type int $aggregated_payload_size
32     *           Aggregated size of payloads received from the client.
33     * }
34     */
35    public function __construct($data = NULL) {
36        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
37        parent::__construct($data);
38    }
39
40    /**
41     * Aggregated size of payloads received from the client.
42     *
43     * Generated from protobuf field <code>int32 aggregated_payload_size = 1;</code>
44     * @return int
45     */
46    public function getAggregatedPayloadSize()
47    {
48        return $this->aggregated_payload_size;
49    }
50
51    /**
52     * Aggregated size of payloads received from the client.
53     *
54     * Generated from protobuf field <code>int32 aggregated_payload_size = 1;</code>
55     * @param int $var
56     * @return $this
57     */
58    public function setAggregatedPayloadSize($var)
59    {
60        GPBUtil::checkInt32($var);
61        $this->aggregated_payload_size = $var;
62
63        return $this;
64    }
65
66}
67
68