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

/**
 * Selector for Features of an EntityType.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureSelector</code>
 */
class FeatureSelector extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Matches Features based on ID.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id_matcher = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\IdMatcher $id_matcher
     *           Required. Matches Features based on ID.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureSelector::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Matches Features based on ID.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\IdMatcher|null
     */
    public function getIdMatcher()
    {
        return $this->id_matcher;
    }

    public function hasIdMatcher()
    {
        return isset($this->id_matcher);
    }

    public function clearIdMatcher()
    {
        unset($this->id_matcher);
    }

    /**
     * Required. Matches Features based on ID.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.IdMatcher id_matcher = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\IdMatcher $var
     * @return $this
     */
    public function setIdMatcher($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\IdMatcher::class);
        $this->id_matcher = $var;

        return $this;
    }

}

