<?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 specification.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.TableSpec</code>
 */
class TableSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. If the table is date-sharded, that is, it matches the `[prefix]YYYYMMDD`
     * name pattern, this field 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 date-sharded, that is, it matches the `[prefix]YYYYMMDD`
     *           name pattern, this field 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 date-sharded, that is, it matches the `[prefix]YYYYMMDD`
     * name pattern, this field 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 date-sharded, that is, it matches the `[prefix]YYYYMMDD`
     * name pattern, this field 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;
    }

}

