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

namespace Google\Cloud\ContainerAnalysis\V1;

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

/**
 * Request to get a vulnerability summary for some set of occurrences.
 *
 * Generated from protobuf message <code>google.devtools.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest</code>
 */
class GetVulnerabilityOccurrencesSummaryRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the project to get a vulnerability summary for in the form of
     * `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * The filter expression.
     *
     * Generated from protobuf field <code>string filter = 2;</code>
     */
    private $filter = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The name of the project to get a vulnerability summary for in the form of
     *           `projects/[PROJECT_ID]`.
     *     @type string $filter
     *           The filter expression.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Containeranalysis\V1\Containeranalysis::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the project to get a vulnerability summary for in the form of
     * `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The name of the project to get a vulnerability summary for in the form of
     * `projects/[PROJECT_ID]`.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * The filter expression.
     *
     * Generated from protobuf field <code>string filter = 2;</code>
     * @return string
     */
    public function getFilter()
    {
        return $this->filter;
    }

    /**
     * The filter expression.
     *
     * Generated from protobuf field <code>string filter = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setFilter($var)
    {
        GPBUtil::checkString($var, True);
        $this->filter = $var;

        return $this;
    }

}

