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

namespace Google\Cloud\Sql\V1beta4;

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

/**
 * Specifies options for controlling advanced machine features.
 *
 * Generated from protobuf message <code>google.cloud.sql.v1beta4.AdvancedMachineFeatures</code>
 */
class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of threads per physical core.
     *
     * Generated from protobuf field <code>int32 threads_per_core = 1;</code>
     */
    private $threads_per_core = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $threads_per_core
     *           The number of threads per physical core.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Sql\V1Beta4\CloudSqlResources::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of threads per physical core.
     *
     * Generated from protobuf field <code>int32 threads_per_core = 1;</code>
     * @return int
     */
    public function getThreadsPerCore()
    {
        return $this->threads_per_core;
    }

    /**
     * The number of threads per physical core.
     *
     * Generated from protobuf field <code>int32 threads_per_core = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setThreadsPerCore($var)
    {
        GPBUtil::checkInt32($var);
        $this->threads_per_core = $var;

        return $this;
    }

}

