<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/networkmanagement/v1/reachability.proto

namespace Google\Cloud\NetworkManagement\V1;

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

/**
 * Response for the `ListConnectivityTests` method.
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.ListConnectivityTestsResponse</code>
 */
class ListConnectivityTestsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of Connectivity Tests.
     *
     * Generated from protobuf field <code>repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;</code>
     */
    private $resources;
    /**
     * Page token to fetch the next set of Connectivity Tests.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';
    /**
     * Locations that could not be reached (when querying all locations with `-`).
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\NetworkManagement\V1\ConnectivityTest[]|\Google\Protobuf\Internal\RepeatedField $resources
     *           List of Connectivity Tests.
     *     @type string $next_page_token
     *           Page token to fetch the next set of Connectivity Tests.
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachable
     *           Locations that could not be reached (when querying all locations with `-`).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\Reachability::initOnce();
        parent::__construct($data);
    }

    /**
     * List of Connectivity Tests.
     *
     * Generated from protobuf field <code>repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResources()
    {
        return $this->resources;
    }

    /**
     * List of Connectivity Tests.
     *
     * Generated from protobuf field <code>repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;</code>
     * @param \Google\Cloud\NetworkManagement\V1\ConnectivityTest[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\NetworkManagement\V1\ConnectivityTest::class);
        $this->resources = $arr;

        return $this;
    }

    /**
     * Page token to fetch the next set of Connectivity Tests.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Page token to fetch the next set of Connectivity Tests.
     *
     * 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;
    }

    /**
     * Locations that could not be reached (when querying all locations with `-`).
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Locations that could not be reached (when querying all locations with `-`).
     *
     * Generated from protobuf field <code>repeated string unreachable = 3;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

