<?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.Accelerators</code>
 */
class Accelerators extends \Google\Protobuf\Internal\Message
{
    /**
     * Number of accelerator cards exposed to the guest.
     *
     * Generated from protobuf field <code>int32 guest_accelerator_count = 210643860;</code>
     */
    private $guest_accelerator_count = 0;
    /**
     * The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
     *
     * Generated from protobuf field <code>string guest_accelerator_type = 24629269;</code>
     */
    private $guest_accelerator_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $guest_accelerator_count
     *           Number of accelerator cards exposed to the guest.
     *     @type string $guest_accelerator_type
     *           The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Number of accelerator cards exposed to the guest.
     *
     * Generated from protobuf field <code>int32 guest_accelerator_count = 210643860;</code>
     * @return int
     */
    public function getGuestAcceleratorCount()
    {
        return $this->guest_accelerator_count;
    }

    /**
     * Number of accelerator cards exposed to the guest.
     *
     * Generated from protobuf field <code>int32 guest_accelerator_count = 210643860;</code>
     * @param int $var
     * @return $this
     */
    public function setGuestAcceleratorCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->guest_accelerator_count = $var;

        return $this;
    }

    /**
     * The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
     *
     * Generated from protobuf field <code>string guest_accelerator_type = 24629269;</code>
     * @return string
     */
    public function getGuestAcceleratorType()
    {
        return $this->guest_accelerator_type;
    }

    /**
     * The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
     *
     * Generated from protobuf field <code>string guest_accelerator_type = 24629269;</code>
     * @param string $var
     * @return $this
     */
    public function setGuestAcceleratorType($var)
    {
        GPBUtil::checkString($var, True);
        $this->guest_accelerator_type = $var;

        return $this;
    }

}

