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

namespace Google\Cloud\GkeRecommender\V1;

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

/**
 * Resources used by a model deployment.
 *
 * Generated from protobuf message <code>google.cloud.gkerecommender.v1.ResourcesUsed</code>
 */
class ResourcesUsed extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The number of accelerators (e.g., GPUs or TPUs) used by the
     * model deployment on the Kubernetes node.
     *
     * Generated from protobuf field <code>int32 accelerator_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $accelerator_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $accelerator_count
     *           Output only. The number of accelerators (e.g., GPUs or TPUs) used by the
     *           model deployment on the Kubernetes node.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkerecommender\V1\Gkerecommender::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The number of accelerators (e.g., GPUs or TPUs) used by the
     * model deployment on the Kubernetes node.
     *
     * Generated from protobuf field <code>int32 accelerator_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getAcceleratorCount()
    {
        return $this->accelerator_count;
    }

    /**
     * Output only. The number of accelerators (e.g., GPUs or TPUs) used by the
     * model deployment on the Kubernetes node.
     *
     * Generated from protobuf field <code>int32 accelerator_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setAcceleratorCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->accelerator_count = $var;

        return $this;
    }

}

