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

/**
 * Business Context of the entry.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.BusinessContext</code>
 */
class BusinessContext extends \Google\Protobuf\Internal\Message
{
    /**
     * Entry overview fields for rich text descriptions of entries.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.EntryOverview entry_overview = 1;</code>
     */
    private $entry_overview = null;
    /**
     * Contact people for the entry.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Contacts contacts = 2;</code>
     */
    private $contacts = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\V1\EntryOverview $entry_overview
     *           Entry overview fields for rich text descriptions of entries.
     *     @type \Google\Cloud\DataCatalog\V1\Contacts $contacts
     *           Contact people for the entry.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Entry overview fields for rich text descriptions of entries.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.EntryOverview entry_overview = 1;</code>
     * @return \Google\Cloud\DataCatalog\V1\EntryOverview|null
     */
    public function getEntryOverview()
    {
        return $this->entry_overview;
    }

    public function hasEntryOverview()
    {
        return isset($this->entry_overview);
    }

    public function clearEntryOverview()
    {
        unset($this->entry_overview);
    }

    /**
     * Entry overview fields for rich text descriptions of entries.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.EntryOverview entry_overview = 1;</code>
     * @param \Google\Cloud\DataCatalog\V1\EntryOverview $var
     * @return $this
     */
    public function setEntryOverview($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\EntryOverview::class);
        $this->entry_overview = $var;

        return $this;
    }

    /**
     * Contact people for the entry.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Contacts contacts = 2;</code>
     * @return \Google\Cloud\DataCatalog\V1\Contacts|null
     */
    public function getContacts()
    {
        return $this->contacts;
    }

    public function hasContacts()
    {
        return isset($this->contacts);
    }

    public function clearContacts()
    {
        unset($this->contacts);
    }

    /**
     * Contact people for the entry.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Contacts contacts = 2;</code>
     * @param \Google\Cloud\DataCatalog\V1\Contacts $var
     * @return $this
     */
    public function setContacts($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Contacts::class);
        $this->contacts = $var;

        return $this;
    }

}

