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

namespace Google\Cloud\DataCatalog\V1;

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

/**
 * Normal BigQuery table spec.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.TableSpec</code>
 */
class TableSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`,
     * `grouped_entry` is the Data Catalog resource name of the date sharded
     * grouped entry, for example,
     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
     * Otherwise, `grouped_entry` is empty.
     *
     * Generated from protobuf field <code>string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    private $grouped_entry = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $grouped_entry
     *           Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`,
     *           `grouped_entry` is the Data Catalog resource name of the date sharded
     *           grouped entry, for example,
     *           `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
     *           Otherwise, `grouped_entry` is empty.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\TableSpec::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`,
     * `grouped_entry` is the Data Catalog resource name of the date sharded
     * grouped entry, for example,
     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
     * Otherwise, `grouped_entry` is empty.
     *
     * Generated from protobuf field <code>string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getGroupedEntry()
    {
        return $this->grouped_entry;
    }

    /**
     * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`,
     * `grouped_entry` is the Data Catalog resource name of the date sharded
     * grouped entry, for example,
     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
     * Otherwise, `grouped_entry` is empty.
     *
     * Generated from protobuf field <code>string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setGroupedEntry($var)
    {
        GPBUtil::checkString($var, True);
        $this->grouped_entry = $var;

        return $this;
    }

}

