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

namespace Google\Cloud\AIPlatform\V1\FeatureViewDataKey;

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

/**
 * ID that is comprised from several parts (columns).
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureViewDataKey.CompositeKey</code>
 */
class CompositeKey extends \Google\Protobuf\Internal\Message
{
    /**
     * Parts to construct Entity ID. Should match with the same ID columns as
     * defined in FeatureView in the same order.
     *
     * Generated from protobuf field <code>repeated string parts = 1;</code>
     */
    private $parts;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $parts
     *           Parts to construct Entity ID. Should match with the same ID columns as
     *           defined in FeatureView in the same order.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Parts to construct Entity ID. Should match with the same ID columns as
     * defined in FeatureView in the same order.
     *
     * Generated from protobuf field <code>repeated string parts = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getParts()
    {
        return $this->parts;
    }

    /**
     * Parts to construct Entity ID. Should match with the same ID columns as
     * defined in FeatureView in the same order.
     *
     * Generated from protobuf field <code>repeated string parts = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setParts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->parts = $arr;

        return $this;
    }

}


