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

namespace Google\Cloud\AIPlatform\V1\FeatureView;

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

/**
 * A Feature Registry source for features that need to be synced to Online
 * Store.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource</code>
 */
class FeatureRegistrySource extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. List of features that need to be synced to Online Store.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $feature_groups;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup>|\Google\Protobuf\Internal\RepeatedField $feature_groups
     *           Required. List of features that need to be synced to Online Store.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. List of features that need to be synced to Online Store.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFeatureGroups()
    {
        return $this->feature_groups;
    }

    /**
     * Required. List of features that need to be synced to Online Store.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup feature_groups = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFeatureGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\FeatureView\FeatureRegistrySource\FeatureGroup::class);
        $this->feature_groups = $arr;

        return $this;
    }

}


