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

namespace Google\Cloud\BigQuery\Reservation\V1;

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

/**
 * Fully qualified reference to BigQuery table.
 * Internally stored as google.cloud.bi.v1.BqTableReference.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.reservation.v1.TableReference</code>
 */
class TableReference extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The assigned project ID of the project.
     *
     * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $project_id = '';
    /**
     * Optional. The ID of the dataset in the above project.
     *
     * Generated from protobuf field <code>string dataset_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $dataset_id = '';
    /**
     * Optional. The ID of the table in the above dataset.
     *
     * Generated from protobuf field <code>string table_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $table_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $project_id
     *           Optional. The assigned project ID of the project.
     *     @type string $dataset_id
     *           Optional. The ID of the dataset in the above project.
     *     @type string $table_id
     *           Optional. The ID of the table in the above dataset.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Reservation\V1\Reservation::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The assigned project ID of the project.
     *
     * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getProjectId()
    {
        return $this->project_id;
    }

    /**
     * Optional. The assigned project ID of the project.
     *
     * Generated from protobuf field <code>string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->project_id = $var;

        return $this;
    }

    /**
     * Optional. The ID of the dataset in the above project.
     *
     * Generated from protobuf field <code>string dataset_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDatasetId()
    {
        return $this->dataset_id;
    }

    /**
     * Optional. The ID of the dataset in the above project.
     *
     * Generated from protobuf field <code>string dataset_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDatasetId($var)
    {
        GPBUtil::checkString($var, True);
        $this->dataset_id = $var;

        return $this;
    }

    /**
     * Optional. The ID of the table in the above dataset.
     *
     * Generated from protobuf field <code>string table_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getTableId()
    {
        return $this->table_id;
    }

    /**
     * Optional. The ID of the table in the above dataset.
     *
     * Generated from protobuf field <code>string table_id = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setTableId($var)
    {
        GPBUtil::checkString($var, True);
        $this->table_id = $var;

        return $this;
    }

}

