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

namespace Google\Cloud\Compute\V1;

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

/**
 * Array of guest attribute namespace/key/value tuples.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.GuestAttributesValue</code>
 */
class GuestAttributesValue extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.GuestAttributesEntry items = 100526016;</code>
     */
    private $items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\GuestAttributesEntry[] $items
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.GuestAttributesEntry items = 100526016;</code>
     * @return RepeatedField<\Google\Cloud\Compute\V1\GuestAttributesEntry>
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.GuestAttributesEntry items = 100526016;</code>
     * @param \Google\Cloud\Compute\V1\GuestAttributesEntry[] $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\GuestAttributesEntry::class);
        $this->items = $arr;

        return $this;
    }

}

