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

namespace Google\Cloud\Gaming\V1;

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

/**
 * Fleet configs for Agones.
 *
 * Generated from protobuf message <code>google.cloud.gaming.v1.FleetConfig</code>
 */
class FleetConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Agones fleet spec. Example spec:
     * `https://agones.dev/site/docs/reference/fleet/`.
     *
     * Generated from protobuf field <code>string fleet_spec = 1;</code>
     */
    private $fleet_spec = '';
    /**
     * The name of the FleetConfig.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     */
    private $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $fleet_spec
     *           Agones fleet spec. Example spec:
     *           `https://agones.dev/site/docs/reference/fleet/`.
     *     @type string $name
     *           The name of the FleetConfig.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gaming\V1\GameServerConfigs::initOnce();
        parent::__construct($data);
    }

    /**
     * Agones fleet spec. Example spec:
     * `https://agones.dev/site/docs/reference/fleet/`.
     *
     * Generated from protobuf field <code>string fleet_spec = 1;</code>
     * @return string
     */
    public function getFleetSpec()
    {
        return $this->fleet_spec;
    }

    /**
     * Agones fleet spec. Example spec:
     * `https://agones.dev/site/docs/reference/fleet/`.
     *
     * Generated from protobuf field <code>string fleet_spec = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFleetSpec($var)
    {
        GPBUtil::checkString($var, True);
        $this->fleet_spec = $var;

        return $this;
    }

    /**
     * The name of the FleetConfig.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The name of the FleetConfig.
     *
     * Generated from protobuf field <code>string name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

