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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.VpnGatewayStatus</code>
 */
class VpnGatewayStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * List of VPN connection for this VpnGateway.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.VpnGatewayStatusVpnConnection vpn_connections = 439334538;</code>
     */
    private $vpn_connections;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection>|\Google\Protobuf\Internal\RepeatedField $vpn_connections
     *           List of VPN connection for this VpnGateway.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * List of VPN connection for this VpnGateway.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.VpnGatewayStatusVpnConnection vpn_connections = 439334538;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getVpnConnections()
    {
        return $this->vpn_connections;
    }

    /**
     * List of VPN connection for this VpnGateway.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.VpnGatewayStatusVpnConnection vpn_connections = 439334538;</code>
     * @param array<\Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setVpnConnections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection::class);
        $this->vpn_connections = $arr;

        return $this;
    }

}

