<?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.FutureResourcesSpecAggregateResources</code>
 */
class FutureResourcesSpecAggregateResources extends \Google\Protobuf\Internal\Message
{
    /**
     * Size of the request, in accelerator (chip) count.
     *
     * Generated from protobuf field <code>optional int64 accelerator_count = 504879675;</code>
     */
    protected $accelerator_count = null;
    /**
     * The VM family that all instances scheduled against this reservation
     * must belong to. Use for TPU reservations.
     * Check the VmFamily enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string vm_family = 125017580;</code>
     */
    protected $vm_family = null;
    /**
     * Workload type. Use for TPU reservations.
     * Check the WorkloadType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string workload_type = 273432322;</code>
     */
    protected $workload_type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $accelerator_count
     *           Size of the request, in accelerator (chip) count.
     *     @type string $vm_family
     *           The VM family that all instances scheduled against this reservation
     *           must belong to. Use for TPU reservations.
     *           Check the VmFamily enum for the list of possible values.
     *     @type string $workload_type
     *           Workload type. Use for TPU reservations.
     *           Check the WorkloadType enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Size of the request, in accelerator (chip) count.
     *
     * Generated from protobuf field <code>optional int64 accelerator_count = 504879675;</code>
     * @return int|string
     */
    public function getAcceleratorCount()
    {
        return isset($this->accelerator_count) ? $this->accelerator_count : 0;
    }

    public function hasAcceleratorCount()
    {
        return isset($this->accelerator_count);
    }

    public function clearAcceleratorCount()
    {
        unset($this->accelerator_count);
    }

    /**
     * Size of the request, in accelerator (chip) count.
     *
     * Generated from protobuf field <code>optional int64 accelerator_count = 504879675;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAcceleratorCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->accelerator_count = $var;

        return $this;
    }

    /**
     * The VM family that all instances scheduled against this reservation
     * must belong to. Use for TPU reservations.
     * Check the VmFamily enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string vm_family = 125017580;</code>
     * @return string
     */
    public function getVmFamily()
    {
        return isset($this->vm_family) ? $this->vm_family : '';
    }

    public function hasVmFamily()
    {
        return isset($this->vm_family);
    }

    public function clearVmFamily()
    {
        unset($this->vm_family);
    }

    /**
     * The VM family that all instances scheduled against this reservation
     * must belong to. Use for TPU reservations.
     * Check the VmFamily enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string vm_family = 125017580;</code>
     * @param string $var
     * @return $this
     */
    public function setVmFamily($var)
    {
        GPBUtil::checkString($var, True);
        $this->vm_family = $var;

        return $this;
    }

    /**
     * Workload type. Use for TPU reservations.
     * Check the WorkloadType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string workload_type = 273432322;</code>
     * @return string
     */
    public function getWorkloadType()
    {
        return isset($this->workload_type) ? $this->workload_type : '';
    }

    public function hasWorkloadType()
    {
        return isset($this->workload_type);
    }

    public function clearWorkloadType()
    {
        unset($this->workload_type);
    }

    /**
     * Workload type. Use for TPU reservations.
     * Check the WorkloadType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string workload_type = 273432322;</code>
     * @param string $var
     * @return $this
     */
    public function setWorkloadType($var)
    {
        GPBUtil::checkString($var, True);
        $this->workload_type = $var;

        return $this;
    }

}

