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

namespace Google\Cloud\Dataplex\V1\MetadataFeed;

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

/**
 * Filters defines the type of changes that you want to listen to.
 * You can have multiple entry type filters and multiple aspect type filters.
 * All of the entry type filters are OR'ed together.
 * All of the aspect type filters are OR'ed together.
 * All of the entry type filters and aspect type filters are AND'ed together.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.MetadataFeed.Filters</code>
 */
class Filters extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The entry types that you want to listen to, specified as
     * relative resource names in the format
     * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
     * Only entries that belong to the specified entry types are published.
     *
     * Generated from protobuf field <code>repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $entry_types;
    /**
     * Optional. The aspect types that you want to listen to. Depending on how
     * the aspect is attached to the entry, in the format:
     * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
     *
     * Generated from protobuf field <code>repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    private $aspect_types;
    /**
     * Optional. The type of change that you want to listen to.
     * If not specified, all changes are published.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $change_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $entry_types
     *           Optional. The entry types that you want to listen to, specified as
     *           relative resource names in the format
     *           `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
     *           Only entries that belong to the specified entry types are published.
     *     @type string[] $aspect_types
     *           Optional. The aspect types that you want to listen to. Depending on how
     *           the aspect is attached to the entry, in the format:
     *           `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
     *     @type int[] $change_types
     *           Optional. The type of change that you want to listen to.
     *           If not specified, all changes are published.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The entry types that you want to listen to, specified as
     * relative resource names in the format
     * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
     * Only entries that belong to the specified entry types are published.
     *
     * Generated from protobuf field <code>repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return RepeatedField<string>
     */
    public function getEntryTypes()
    {
        return $this->entry_types;
    }

    /**
     * Optional. The entry types that you want to listen to, specified as
     * relative resource names in the format
     * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
     * Only entries that belong to the specified entry types are published.
     *
     * Generated from protobuf field <code>repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string[] $var
     * @return $this
     */
    public function setEntryTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->entry_types = $arr;

        return $this;
    }

    /**
     * Optional. The aspect types that you want to listen to. Depending on how
     * the aspect is attached to the entry, in the format:
     * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
     *
     * Generated from protobuf field <code>repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return RepeatedField<string>
     */
    public function getAspectTypes()
    {
        return $this->aspect_types;
    }

    /**
     * Optional. The aspect types that you want to listen to. Depending on how
     * the aspect is attached to the entry, in the format:
     * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
     *
     * Generated from protobuf field <code>repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string[] $var
     * @return $this
     */
    public function setAspectTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->aspect_types = $arr;

        return $this;
    }

    /**
     * Optional. The type of change that you want to listen to.
     * If not specified, all changes are published.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<int>
     */
    public function getChangeTypes()
    {
        return $this->change_types;
    }

    /**
     * Optional. The type of change that you want to listen to.
     * If not specified, all changes are published.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int[] $var
     * @return $this
     */
    public function setChangeTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\MetadataFeed\Filters\ChangeType::class);
        $this->change_types = $arr;

        return $this;
    }

}

