<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: src/proto/grpc/testing/messages.proto

namespace Grpc\Testing;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * <pre>
 * Client-streaming response.
 * </pre>
 *
 * Protobuf type <code>grpc.testing.StreamingInputCallResponse</code>
 */
class StreamingInputCallResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * <pre>
     * Aggregated size of payloads received from the client.
     * </pre>
     *
     * <code>int32 aggregated_payload_size = 1;</code>
     */
    private $aggregated_payload_size = 0;

    public function __construct() {
        \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
        parent::__construct();
    }

    /**
     * <pre>
     * Aggregated size of payloads received from the client.
     * </pre>
     *
     * <code>int32 aggregated_payload_size = 1;</code>
     */
    public function getAggregatedPayloadSize()
    {
        return $this->aggregated_payload_size;
    }

    /**
     * <pre>
     * Aggregated size of payloads received from the client.
     * </pre>
     *
     * <code>int32 aggregated_payload_size = 1;</code>
     */
    public function setAggregatedPayloadSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->aggregated_payload_size = $var;
    }

}

