<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/cloudtrace/v1/trace.proto

namespace Google\Devtools\Cloudtrace\V1;

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

/**
 * The response message for the `ListTraces` method.
 *
 * Generated from protobuf message <code>google.devtools.cloudtrace.v1.ListTracesResponse</code>
 */
class ListTracesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of trace records returned.
     *
     * Generated from protobuf field <code>repeated .google.devtools.cloudtrace.v1.Trace traces = 1;</code>
     */
    private $traces;
    /**
     * If defined, indicates that there are more traces that match the request
     * and that this value should be passed to the next request to continue
     * retrieving additional traces.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';

    public function __construct() {
        \GPBMetadata\Google\Devtools\Cloudtrace\V1\Trace::initOnce();
        parent::__construct();
    }

    /**
     * List of trace records returned.
     *
     * Generated from protobuf field <code>repeated .google.devtools.cloudtrace.v1.Trace traces = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTraces()
    {
        return $this->traces;
    }

    /**
     * List of trace records returned.
     *
     * Generated from protobuf field <code>repeated .google.devtools.cloudtrace.v1.Trace traces = 1;</code>
     * @param \Google\Devtools\Cloudtrace\V1\Trace[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTraces($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Devtools\Cloudtrace\V1\Trace::class);
        $this->traces = $arr;

        return $this;
    }

    /**
     * If defined, indicates that there are more traces that match the request
     * and that this value should be passed to the next request to continue
     * retrieving additional traces.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * If defined, indicates that there are more traces that match the request
     * and that this value should be passed to the next request to continue
     * retrieving additional traces.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

