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

namespace Google\Cloud\SecurityCenter\V1;

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

/**
 * Request message to create single resource value config
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v1.CreateResourceValueConfigRequest</code>
 */
class CreateResourceValueConfigRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Resource name of the new ResourceValueConfig's parent.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Required. The resource value config being created.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $resource_value_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. Resource name of the new ResourceValueConfig's parent.
     *     @type \Google\Cloud\SecurityCenter\V1\ResourceValueConfig $resource_value_config
     *           Required. The resource value config being created.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V1\SecuritycenterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Resource name of the new ResourceValueConfig's parent.
     *
     * 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. Resource name of the new ResourceValueConfig's parent.
     *
     * 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;
    }

    /**
     * Required. The resource value config being created.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\SecurityCenter\V1\ResourceValueConfig|null
     */
    public function getResourceValueConfig()
    {
        return $this->resource_value_config;
    }

    public function hasResourceValueConfig()
    {
        return isset($this->resource_value_config);
    }

    public function clearResourceValueConfig()
    {
        unset($this->resource_value_config);
    }

    /**
     * Required. The resource value config being created.
     *
     * Generated from protobuf field <code>.google.cloud.securitycenter.v1.ResourceValueConfig resource_value_config = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\SecurityCenter\V1\ResourceValueConfig $var
     * @return $this
     */
    public function setResourceValueConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\ResourceValueConfig::class);
        $this->resource_value_config = $var;

        return $this;
    }

}

