<?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;

/**
 * Specification that applies to a data source connection. Valid only for
 * entries with the `DATA_SOURCE_CONNECTION` type.
 * Only one of internal specs can be set at the time, and cannot
 * be changed later.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.DataSourceConnectionSpec</code>
 */
class DataSourceConnectionSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Fields specific to BigQuery connections.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1;</code>
     */
    private $bigquery_connection_spec = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec $bigquery_connection_spec
     *           Output only. Fields specific to BigQuery connections.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Fields specific to BigQuery connections.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1;</code>
     * @return \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec|null
     */
    public function getBigqueryConnectionSpec()
    {
        return $this->bigquery_connection_spec;
    }

    public function hasBigqueryConnectionSpec()
    {
        return isset($this->bigquery_connection_spec);
    }

    public function clearBigqueryConnectionSpec()
    {
        unset($this->bigquery_connection_spec);
    }

    /**
     * Output only. Fields specific to BigQuery connections.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1;</code>
     * @param \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec $var
     * @return $this
     */
    public function setBigqueryConnectionSpec($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\BigQueryConnectionSpec::class);
        $this->bigquery_connection_spec = $var;

        return $this;
    }

}

