<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/dlp.proto

namespace Google\Cloud\Dlp\V2beta1;

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

/**
 * Request for creating a risk analysis operation.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest</code>
 */
class AnalyzeDataSourceRiskRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Privacy metric to compute.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;</code>
     */
    private $privacy_metric = null;
    /**
     * Input dataset to compute metrics over.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;</code>
     */
    private $source_table = null;

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Dlp::initOnce();
        parent::__construct();
    }

    /**
     * Privacy metric to compute.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrivacyMetric
     */
    public function getPrivacyMetric()
    {
        return $this->privacy_metric;
    }

    /**
     * Privacy metric to compute.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrivacyMetric $var
     * @return $this
     */
    public function setPrivacyMetric($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrivacyMetric::class);
        $this->privacy_metric = $var;

        return $this;
    }

    /**
     * Input dataset to compute metrics over.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;</code>
     * @return \Google\Cloud\Dlp\V2beta1\BigQueryTable
     */
    public function getSourceTable()
    {
        return $this->source_table;
    }

    /**
     * Input dataset to compute metrics over.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\BigQueryTable $var
     * @return $this
     */
    public function setSourceTable($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\BigQueryTable::class);
        $this->source_table = $var;

        return $this;
    }

}

