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

namespace Google\Cloud\WebSecurityScanner\V1beta;

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

/**
 * ! Information about a vulnerability with an HTML.
 *
 * Generated from protobuf message <code>google.cloud.websecurityscanner.v1beta.Form</code>
 */
class Form extends \Google\Protobuf\Internal\Message
{
    /**
     * ! The URI where to send the form when it's submitted.
     *
     * Generated from protobuf field <code>string action_uri = 1;</code>
     */
    private $action_uri = '';
    /**
     * ! The names of form fields related to the vulnerability.
     *
     * Generated from protobuf field <code>repeated string fields = 2;</code>
     */
    private $fields;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $action_uri
     *           ! The URI where to send the form when it's submitted.
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $fields
     *           ! The names of form fields related to the vulnerability.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Websecurityscanner\V1Beta\FindingAddon::initOnce();
        parent::__construct($data);
    }

    /**
     * ! The URI where to send the form when it's submitted.
     *
     * Generated from protobuf field <code>string action_uri = 1;</code>
     * @return string
     */
    public function getActionUri()
    {
        return $this->action_uri;
    }

    /**
     * ! The URI where to send the form when it's submitted.
     *
     * Generated from protobuf field <code>string action_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setActionUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->action_uri = $var;

        return $this;
    }

    /**
     * ! The names of form fields related to the vulnerability.
     *
     * Generated from protobuf field <code>repeated string fields = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFields()
    {
        return $this->fields;
    }

    /**
     * ! The names of form fields related to the vulnerability.
     *
     * Generated from protobuf field <code>repeated string fields = 2;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->fields = $arr;

        return $this;
    }

}

