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

namespace Google\Cloud\Dlp\V2;

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

/**
 * Specifies a collection of BigQuery tables. Used for Discovery.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.BigQueryTableCollection</code>
 */
class BigQueryTableCollection extends \Google\Protobuf\Internal\Message
{
    protected $pattern;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\BigQueryRegexes $include_regexes
     *           A collection of regular expressions to match a BigQuery table against.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * A collection of regular expressions to match a BigQuery table against.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1;</code>
     * @return \Google\Cloud\Dlp\V2\BigQueryRegexes|null
     */
    public function getIncludeRegexes()
    {
        return $this->readOneof(1);
    }

    public function hasIncludeRegexes()
    {
        return $this->hasOneof(1);
    }

    /**
     * A collection of regular expressions to match a BigQuery table against.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1;</code>
     * @param \Google\Cloud\Dlp\V2\BigQueryRegexes $var
     * @return $this
     */
    public function setIncludeRegexes($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryRegexes::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPattern()
    {
        return $this->whichOneof("pattern");
    }

}

