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

namespace Google\Cloud\Iot\V1;

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

/**
 * Response for `ListDeviceConfigVersions`.
 *
 * Generated from protobuf message <code>google.cloud.iot.v1.ListDeviceConfigVersionsResponse</code>
 */
class ListDeviceConfigVersionsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The device configuration for the last few versions. Versions are listed
     * in decreasing order, starting from the most recent one.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;</code>
     */
    private $device_configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Iot\V1\DeviceConfig[]|\Google\Protobuf\Internal\RepeatedField $device_configs
     *           The device configuration for the last few versions. Versions are listed
     *           in decreasing order, starting from the most recent one.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Iot\V1\DeviceManager::initOnce();
        parent::__construct($data);
    }

    /**
     * The device configuration for the last few versions. Versions are listed
     * in decreasing order, starting from the most recent one.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceConfigs()
    {
        return $this->device_configs;
    }

    /**
     * The device configuration for the last few versions. Versions are listed
     * in decreasing order, starting from the most recent one.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;</code>
     * @param \Google\Cloud\Iot\V1\DeviceConfig[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeviceConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceConfig::class);
        $this->device_configs = $arr;

        return $this;
    }

}

