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

namespace Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource;

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

/**
 * Features belonging to a single feature group that will be
 * synced to Online Store.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup</code>
 */
class FeatureGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Identifier of the feature group.
     *
     * Generated from protobuf field <code>string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feature_group_id = '';
    /**
     * Required. Identifiers of features under the feature group.
     *
     * Generated from protobuf field <code>repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $feature_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $feature_group_id
     *           Required. Identifier of the feature group.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $feature_ids
     *           Required. Identifiers of features under the feature group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Identifier of the feature group.
     *
     * Generated from protobuf field <code>string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getFeatureGroupId()
    {
        return $this->feature_group_id;
    }

    /**
     * Required. Identifier of the feature group.
     *
     * Generated from protobuf field <code>string feature_group_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setFeatureGroupId($var)
    {
        GPBUtil::checkString($var, True);
        $this->feature_group_id = $var;

        return $this;
    }

    /**
     * Required. Identifiers of features under the feature group.
     *
     * Generated from protobuf field <code>repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFeatureIds()
    {
        return $this->feature_ids;
    }

    /**
     * Required. Identifiers of features under the feature group.
     *
     * Generated from protobuf field <code>repeated string feature_ids = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFeatureIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->feature_ids = $arr;

        return $this;
    }

}


