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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Matcher for Features of an EntityType by Feature ID.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.IdMatcher</code>
 */
class IdMatcher extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The following are accepted as `ids`:
     *  * A single-element list containing only `*`, which selects all Features
     *  in the target EntityType, or
     *  * A list containing only Feature IDs, which selects only Features with
     *  those IDs in the target EntityType.
     *
     * Generated from protobuf field <code>repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $ids
     *           Required. The following are accepted as `ids`:
     *            * A single-element list containing only `*`, which selects all Features
     *            in the target EntityType, or
     *            * A list containing only Feature IDs, which selects only Features with
     *            those IDs in the target EntityType.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureSelector::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The following are accepted as `ids`:
     *  * A single-element list containing only `*`, which selects all Features
     *  in the target EntityType, or
     *  * A list containing only Feature IDs, which selects only Features with
     *  those IDs in the target EntityType.
     *
     * Generated from protobuf field <code>repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIds()
    {
        return $this->ids;
    }

    /**
     * Required. The following are accepted as `ids`:
     *  * A single-element list containing only `*`, which selects all Features
     *  in the target EntityType, or
     *  * A list containing only Feature IDs, which selects only Features with
     *  those IDs in the target EntityType.
     *
     * Generated from protobuf field <code>repeated string ids = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->ids = $arr;

        return $this;
    }

}

