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

namespace Google\Cloud\BigQuery\AnalyticsHub\V1;

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

/**
 * Defines the destination bigquery dataset.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.analyticshub.v1.DestinationDataset</code>
 */
class DestinationDataset extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A reference that identifies the destination dataset.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $dataset_reference = null;
    /**
     * Optional. A descriptive name for the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $friendly_name = null;
    /**
     * Optional. A user-friendly description of the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $description = null;
    /**
     * Optional. The labels associated with this dataset. You can use these
     * to organize and group your datasets.
     * You can set this property when inserting or updating a dataset.
     * See https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * for more information.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $labels;
    /**
     * Required. The geographic location where the dataset should reside. See
     * https://cloud.google.com/bigquery/docs/locations for supported
     * locations.
     *
     * Generated from protobuf field <code>string location = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $location = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDatasetReference $dataset_reference
     *           Required. A reference that identifies the destination dataset.
     *     @type \Google\Protobuf\StringValue $friendly_name
     *           Optional. A descriptive name for the dataset.
     *     @type \Google\Protobuf\StringValue $description
     *           Optional. A user-friendly description of the dataset.
     *     @type array|\Google\Protobuf\Internal\MapField $labels
     *           Optional. The labels associated with this dataset. You can use these
     *           to organize and group your datasets.
     *           You can set this property when inserting or updating a dataset.
     *           See https://cloud.google.com/resource-manager/docs/creating-managing-labels
     *           for more information.
     *     @type string $location
     *           Required. The geographic location where the dataset should reside. See
     *           https://cloud.google.com/bigquery/docs/locations for supported
     *           locations.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Analyticshub\V1\Analyticshub::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A reference that identifies the destination dataset.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDatasetReference|null
     */
    public function getDatasetReference()
    {
        return $this->dataset_reference;
    }

    public function hasDatasetReference()
    {
        return isset($this->dataset_reference);
    }

    public function clearDatasetReference()
    {
        unset($this->dataset_reference);
    }

    /**
     * Required. A reference that identifies the destination dataset.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.analyticshub.v1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDatasetReference $var
     * @return $this
     */
    public function setDatasetReference($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\AnalyticsHub\V1\DestinationDatasetReference::class);
        $this->dataset_reference = $var;

        return $this;
    }

    /**
     * Optional. A descriptive name for the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getFriendlyName()
    {
        return $this->friendly_name;
    }

    public function hasFriendlyName()
    {
        return isset($this->friendly_name);
    }

    public function clearFriendlyName()
    {
        unset($this->friendly_name);
    }

    /**
     * Returns the unboxed value from <code>getFriendlyName()</code>

     * Optional. A descriptive name for the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string|null
     */
    public function getFriendlyNameValue()
    {
        return $this->readWrapperValue("friendly_name");
    }

    /**
     * Optional. A descriptive name for the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setFriendlyName($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->friendly_name = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Optional. A descriptive name for the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string|null $var
     * @return $this
     */
    public function setFriendlyNameValue($var)
    {
        $this->writeWrapperValue("friendly_name", $var);
        return $this;}

    /**
     * Optional. A user-friendly description of the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getDescription()
    {
        return $this->description;
    }

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    /**
     * Returns the unboxed value from <code>getDescription()</code>

     * Optional. A user-friendly description of the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string|null
     */
    public function getDescriptionValue()
    {
        return $this->readWrapperValue("description");
    }

    /**
     * Optional. A user-friendly description of the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->description = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * Optional. A user-friendly description of the dataset.
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string|null $var
     * @return $this
     */
    public function setDescriptionValue($var)
    {
        $this->writeWrapperValue("description", $var);
        return $this;}

    /**
     * Optional. The labels associated with this dataset. You can use these
     * to organize and group your datasets.
     * You can set this property when inserting or updating a dataset.
     * See https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * for more information.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getLabels()
    {
        return $this->labels;
    }

    /**
     * Optional. The labels associated with this dataset. You can use these
     * to organize and group your datasets.
     * You can set this property when inserting or updating a dataset.
     * See https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * for more information.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setLabels($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->labels = $arr;

        return $this;
    }

    /**
     * Required. The geographic location where the dataset should reside. See
     * https://cloud.google.com/bigquery/docs/locations for supported
     * locations.
     *
     * Generated from protobuf field <code>string location = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getLocation()
    {
        return $this->location;
    }

    /**
     * Required. The geographic location where the dataset should reside. See
     * https://cloud.google.com/bigquery/docs/locations for supported
     * locations.
     *
     * Generated from protobuf field <code>string location = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->location = $var;

        return $this;
    }

}

