<?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 regarding any resource causing the vulnerability such
 * as JavaScript sources, image, audio files, etc.
 *
 * Generated from protobuf message <code>google.cloud.websecurityscanner.v1beta.ViolatingResource</code>
 */
class ViolatingResource extends \Google\Protobuf\Internal\Message
{
    /**
     * The MIME type of this resource.
     *
     * Generated from protobuf field <code>string content_type = 1;</code>
     */
    private $content_type = '';
    /**
     * URL of this violating resource.
     *
     * Generated from protobuf field <code>string resource_url = 2;</code>
     */
    private $resource_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $content_type
     *           The MIME type of this resource.
     *     @type string $resource_url
     *           URL of this violating resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Websecurityscanner\V1Beta\FindingAddon::initOnce();
        parent::__construct($data);
    }

    /**
     * The MIME type of this resource.
     *
     * Generated from protobuf field <code>string content_type = 1;</code>
     * @return string
     */
    public function getContentType()
    {
        return $this->content_type;
    }

    /**
     * The MIME type of this resource.
     *
     * Generated from protobuf field <code>string content_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setContentType($var)
    {
        GPBUtil::checkString($var, True);
        $this->content_type = $var;

        return $this;
    }

    /**
     * URL of this violating resource.
     *
     * Generated from protobuf field <code>string resource_url = 2;</code>
     * @return string
     */
    public function getResourceUrl()
    {
        return $this->resource_url;
    }

    /**
     * URL of this violating resource.
     *
     * Generated from protobuf field <code>string resource_url = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setResourceUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_url = $var;

        return $this;
    }

}

