<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.LicenseResourceRequirements</code>
 */
class LicenseResourceRequirements extends \Google\Protobuf\Internal\Message
{
    /**
     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_guest_cpu_count = 209529380;</code>
     */
    private $min_guest_cpu_count = 0;
    /**
     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_memory_mb = 236350438;</code>
     */
    private $min_memory_mb = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $min_guest_cpu_count
     *           Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
     *     @type int $min_memory_mb
     *           Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_guest_cpu_count = 209529380;</code>
     * @return int
     */
    public function getMinGuestCpuCount()
    {
        return $this->min_guest_cpu_count;
    }

    /**
     * Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_guest_cpu_count = 209529380;</code>
     * @param int $var
     * @return $this
     */
    public function setMinGuestCpuCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->min_guest_cpu_count = $var;

        return $this;
    }

    /**
     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_memory_mb = 236350438;</code>
     * @return int
     */
    public function getMinMemoryMb()
    {
        return $this->min_memory_mb;
    }

    /**
     * Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
     *
     * Generated from protobuf field <code>int32 min_memory_mb = 236350438;</code>
     * @param int $var
     * @return $this
     */
    public function setMinMemoryMb($var)
    {
        GPBUtil::checkInt32($var);
        $this->min_memory_mb = $var;

        return $this;
    }

}

