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

/**
 * Integration selector of the rule. The rule is only applied to the
 * Integration selected by the selector.
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.IntegrationSelector</code>
 */
class IntegrationSelector extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Integration to which the rule applies.
     * This field can be used to specify the integration against which the
     * ingestion rule should be applied.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration integration = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $integration = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $integration
     *           Required. Integration to which the rule applies.
     *           This field can be used to specify the integration against which the
     *           ingestion rule should be applied.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\Lineage\Configmanagement\V1\Configmanagement::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Integration to which the rule applies.
     * This field can be used to specify the integration against which the
     * ingestion rule should be applied.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration integration = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getIntegration()
    {
        return $this->integration;
    }

    /**
     * Required. Integration to which the rule applies.
     * This field can be used to specify the integration against which the
     * ingestion rule should be applied.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration integration = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setIntegration($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\Lineage\ConfigManagement\V1\Config\Ingestion\IngestionRule\IntegrationSelector\Integration::class);
        $this->integration = $var;

        return $this;
    }

}

