<?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;

/**
 * Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.Help</code>
 */
class Help extends \Google\Protobuf\Internal\Message
{
    /**
     * URL(s) pointing to additional information on handling the current error.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HelpLink links = 102977465;</code>
     */
    private $links;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Compute\V1\HelpLink>|\Google\Protobuf\Internal\RepeatedField $links
     *           URL(s) pointing to additional information on handling the current error.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * URL(s) pointing to additional information on handling the current error.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HelpLink links = 102977465;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLinks()
    {
        return $this->links;
    }

    /**
     * URL(s) pointing to additional information on handling the current error.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.HelpLink links = 102977465;</code>
     * @param array<\Google\Cloud\Compute\V1\HelpLink>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\HelpLink::class);
        $this->links = $arr;

        return $this;
    }

}

