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

namespace Google\Cloud\Gaming\V1\DeployedFleetDetails\DeployedFleet;

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

/**
 * DeployedFleetStatus has details about the Agones fleets such as how many
 * are running, how many allocated, and so on.
 *
 * Generated from protobuf message <code>google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus</code>
 */
class DeployedFleetStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of GameServer replicas in the READY state in this fleet.
     *
     * Generated from protobuf field <code>int64 ready_replicas = 1;</code>
     */
    private $ready_replicas = 0;
    /**
     * The number of GameServer replicas in the ALLOCATED state in this fleet.
     *
     * Generated from protobuf field <code>int64 allocated_replicas = 2;</code>
     */
    private $allocated_replicas = 0;
    /**
     * The number of GameServer replicas in the RESERVED state in this fleet.
     * Reserved instances won't be deleted on scale down, but won't cause
     * an autoscaler to scale up.
     *
     * Generated from protobuf field <code>int64 reserved_replicas = 3;</code>
     */
    private $reserved_replicas = 0;
    /**
     * The total number of current GameServer replicas in this fleet.
     *
     * Generated from protobuf field <code>int64 replicas = 4;</code>
     */
    private $replicas = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $ready_replicas
     *           The number of GameServer replicas in the READY state in this fleet.
     *     @type int|string $allocated_replicas
     *           The number of GameServer replicas in the ALLOCATED state in this fleet.
     *     @type int|string $reserved_replicas
     *           The number of GameServer replicas in the RESERVED state in this fleet.
     *           Reserved instances won't be deleted on scale down, but won't cause
     *           an autoscaler to scale up.
     *     @type int|string $replicas
     *           The total number of current GameServer replicas in this fleet.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gaming\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of GameServer replicas in the READY state in this fleet.
     *
     * Generated from protobuf field <code>int64 ready_replicas = 1;</code>
     * @return int|string
     */
    public function getReadyReplicas()
    {
        return $this->ready_replicas;
    }

    /**
     * The number of GameServer replicas in the READY state in this fleet.
     *
     * Generated from protobuf field <code>int64 ready_replicas = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setReadyReplicas($var)
    {
        GPBUtil::checkInt64($var);
        $this->ready_replicas = $var;

        return $this;
    }

    /**
     * The number of GameServer replicas in the ALLOCATED state in this fleet.
     *
     * Generated from protobuf field <code>int64 allocated_replicas = 2;</code>
     * @return int|string
     */
    public function getAllocatedReplicas()
    {
        return $this->allocated_replicas;
    }

    /**
     * The number of GameServer replicas in the ALLOCATED state in this fleet.
     *
     * Generated from protobuf field <code>int64 allocated_replicas = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAllocatedReplicas($var)
    {
        GPBUtil::checkInt64($var);
        $this->allocated_replicas = $var;

        return $this;
    }

    /**
     * The number of GameServer replicas in the RESERVED state in this fleet.
     * Reserved instances won't be deleted on scale down, but won't cause
     * an autoscaler to scale up.
     *
     * Generated from protobuf field <code>int64 reserved_replicas = 3;</code>
     * @return int|string
     */
    public function getReservedReplicas()
    {
        return $this->reserved_replicas;
    }

    /**
     * The number of GameServer replicas in the RESERVED state in this fleet.
     * Reserved instances won't be deleted on scale down, but won't cause
     * an autoscaler to scale up.
     *
     * Generated from protobuf field <code>int64 reserved_replicas = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setReservedReplicas($var)
    {
        GPBUtil::checkInt64($var);
        $this->reserved_replicas = $var;

        return $this;
    }

    /**
     * The total number of current GameServer replicas in this fleet.
     *
     * Generated from protobuf field <code>int64 replicas = 4;</code>
     * @return int|string
     */
    public function getReplicas()
    {
        return $this->replicas;
    }

    /**
     * The total number of current GameServer replicas in this fleet.
     *
     * Generated from protobuf field <code>int64 replicas = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setReplicas($var)
    {
        GPBUtil::checkInt64($var);
        $this->replicas = $var;

        return $this;
    }

}


