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

namespace Google\Cloud\Audit\BigQueryAuditMetadata;

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

/**
 * Definition of an external data source used in a query.
 *
 * Generated from protobuf message <code>google.cloud.audit.BigQueryAuditMetadata.TableDefinition</code>
 */
class TableDefinition extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the table, used in queries.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * URIs for the data.
     *
     * Generated from protobuf field <code>repeated string source_uris = 2;</code>
     */
    private $source_uris;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Name of the table, used in queries.
     *     @type string[] $source_uris
     *           URIs for the data.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Audit\BigqueryAuditMetadata::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the table, used in queries.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the table, used in queries.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * URIs for the data.
     *
     * Generated from protobuf field <code>repeated string source_uris = 2;</code>
     * @return RepeatedField<string>
     */
    public function getSourceUris()
    {
        return $this->source_uris;
    }

    /**
     * URIs for the data.
     *
     * Generated from protobuf field <code>repeated string source_uris = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setSourceUris($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->source_uris = $arr;

        return $this;
    }

}

