<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/photos/library/v1/photos_library.proto

namespace Google\Photos\Library\V1;

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

/**
 * This filter defines the features that the media items should have.
 *
 * Generated from protobuf message <code>google.photos.library.v1.FeatureFilter</code>
 */
class FeatureFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * The set of features to be included in the media item search results.
     * The items in the set are ORed and may match any of the specified features.
     *
     * Generated from protobuf field <code>repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;</code>
     */
    private $included_features;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $included_features
     *           The set of features to be included in the media item search results.
     *           The items in the set are ORed and may match any of the specified features.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Library\V1\PhotosLibrary::initOnce();
        parent::__construct($data);
    }

    /**
     * The set of features to be included in the media item search results.
     * The items in the set are ORed and may match any of the specified features.
     *
     * Generated from protobuf field <code>repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIncludedFeatures()
    {
        return $this->included_features;
    }

    /**
     * The set of features to be included in the media item search results.
     * The items in the set are ORed and may match any of the specified features.
     *
     * Generated from protobuf field <code>repeated .google.photos.library.v1.FeatureFilter.Feature included_features = 1;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIncludedFeatures($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Photos\Library\V1\FeatureFilter\Feature::class);
        $this->included_features = $arr;

        return $this;
    }

}

