<?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.SecurityPolicyRuleHttpHeaderAction</code>
 */
class SecurityPolicyRuleHttpHeaderAction extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of request headers to add or overwrite if they're already present.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661;</code>
     */
    private $request_headers_to_adds;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $request_headers_to_adds
     *           The list of request headers to add or overwrite if they're already present.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of request headers to add or overwrite if they're already present.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRequestHeadersToAdds()
    {
        return $this->request_headers_to_adds;
    }

    /**
     * The list of request headers to add or overwrite if they're already present.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661;</code>
     * @param array<\Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRequestHeadersToAdds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption::class);
        $this->request_headers_to_adds = $arr;

        return $this;
    }

}

