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

namespace Google\Cloud\Ces\V1;

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

/**
 * Data store related settings for the app.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.DataStoreSettings</code>
 */
class DataStoreSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The engines for the app.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $engines;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Ces\V1\DataStoreSettings\Engine[] $engines
     *           Output only. The engines for the app.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\App::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The engines for the app.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\Ces\V1\DataStoreSettings\Engine>
     */
    public function getEngines()
    {
        return $this->engines;
    }

    /**
     * Output only. The engines for the app.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.DataStoreSettings.Engine engines = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Ces\V1\DataStoreSettings\Engine[] $var
     * @return $this
     */
    public function setEngines($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\DataStoreSettings\Engine::class);
        $this->engines = $arr;

        return $this;
    }

}

