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

namespace Google\Cloud\DataCatalog\Lineage\ConfigManagement\V1\Config\Ingestion\IngestionRule;

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

/**
 * Lineage enablement configuration. Defines configurations for the
 * ingestion of lineage for the resource and its children.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.LineageEnablement</code>
 */
class LineageEnablement extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. If true, ingestion of lineage should be enabled. If false,
     * it should be disabled. If unspecified, the system default value is
     * used.
     *
     * Generated from protobuf field <code>optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $enabled = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enabled
     *           Optional. If true, ingestion of lineage should be enabled. If false,
     *           it should be disabled. If unspecified, the system default value is
     *           used.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\Lineage\Configmanagement\V1\Configmanagement::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. If true, ingestion of lineage should be enabled. If false,
     * it should be disabled. If unspecified, the system default value is
     * used.
     *
     * Generated from protobuf field <code>optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getEnabled()
    {
        return isset($this->enabled) ? $this->enabled : false;
    }

    public function hasEnabled()
    {
        return isset($this->enabled);
    }

    public function clearEnabled()
    {
        unset($this->enabled);
    }

    /**
     * Optional. If true, ingestion of lineage should be enabled. If false,
     * it should be disabled. If unspecified, the system default value is
     * used.
     *
     * Generated from protobuf field <code>optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

}

