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

namespace Google\Cloud\DataCatalog\V1;

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

/**
 * Entry group metadata.
 *  An `EntryGroup` resource represents a logical grouping of zero or more
 *  Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.EntryGroup</code>
 */
class EntryGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the entry group in URL format.
     * Note: The entry group itself and its child resources might not be
     * stored in the location specified in its name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * A short name to identify the entry group, for example,
     * "analytics data - jan 2011". Default value is an empty string.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     */
    protected $display_name = '';
    /**
     * Entry group description. Can consist of several sentences or
     * paragraphs that describe the entry group contents.
     * Default value is an empty string.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     */
    protected $description = '';
    /**
     * Output only. Timestamps of the entry group. Default value is empty.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $data_catalog_timestamps = null;
    /**
     * Optional. When set to [true], it means DataCatalog EntryGroup was
     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
     * its Entries can be created. After setting the flag to [true] it cannot be
     * unset.
     *
     * Generated from protobuf field <code>bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $transferred_to_dataplex = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the entry group in URL format.
     *           Note: The entry group itself and its child resources might not be
     *           stored in the location specified in its name.
     *     @type string $display_name
     *           A short name to identify the entry group, for example,
     *           "analytics data - jan 2011". Default value is an empty string.
     *     @type string $description
     *           Entry group description. Can consist of several sentences or
     *           paragraphs that describe the entry group contents.
     *           Default value is an empty string.
     *     @type \Google\Cloud\DataCatalog\V1\SystemTimestamps $data_catalog_timestamps
     *           Output only. Timestamps of the entry group. Default value is empty.
     *     @type bool $transferred_to_dataplex
     *           Optional. When set to [true], it means DataCatalog EntryGroup was
     *           transferred to Dataplex Catalog Service. It makes EntryGroup and its
     *           Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
     *           its Entries can be created. After setting the flag to [true] it cannot be
     *           unset.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name of the entry group in URL format.
     * Note: The entry group itself and its child resources might not be
     * stored in the location specified in its name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The resource name of the entry group in URL format.
     * Note: The entry group itself and its child resources might not be
     * stored in the location specified in its name.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * A short name to identify the entry group, for example,
     * "analytics data - jan 2011". Default value is an empty string.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * A short name to identify the entry group, for example,
     * "analytics data - jan 2011". Default value is an empty string.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Entry group description. Can consist of several sentences or
     * paragraphs that describe the entry group contents.
     * Default value is an empty string.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Entry group description. Can consist of several sentences or
     * paragraphs that describe the entry group contents.
     * Default value is an empty string.
     *
     * Generated from protobuf field <code>string description = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Output only. Timestamps of the entry group. Default value is empty.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\DataCatalog\V1\SystemTimestamps|null
     */
    public function getDataCatalogTimestamps()
    {
        return $this->data_catalog_timestamps;
    }

    public function hasDataCatalogTimestamps()
    {
        return isset($this->data_catalog_timestamps);
    }

    public function clearDataCatalogTimestamps()
    {
        unset($this->data_catalog_timestamps);
    }

    /**
     * Output only. Timestamps of the entry group. Default value is empty.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\DataCatalog\V1\SystemTimestamps $var
     * @return $this
     */
    public function setDataCatalogTimestamps($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\SystemTimestamps::class);
        $this->data_catalog_timestamps = $var;

        return $this;
    }

    /**
     * Optional. When set to [true], it means DataCatalog EntryGroup was
     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
     * its Entries can be created. After setting the flag to [true] it cannot be
     * unset.
     *
     * Generated from protobuf field <code>bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getTransferredToDataplex()
    {
        return $this->transferred_to_dataplex;
    }

    /**
     * Optional. When set to [true], it means DataCatalog EntryGroup was
     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
     * its Entries can be created. After setting the flag to [true] it cannot be
     * unset.
     *
     * Generated from protobuf field <code>bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setTransferredToDataplex($var)
    {
        GPBUtil::checkBool($var);
        $this->transferred_to_dataplex = $var;

        return $this;
    }

}

