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

namespace Google\Cloud\Container\V1;

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

/**
 * The option enables the Kubernetes NUMA-aware Memory Manager feature.
 * Detailed description about the feature can be found
 * [here](https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/).
 *
 * Generated from protobuf message <code>google.container.v1.MemoryManager</code>
 */
class MemoryManager extends \Google\Protobuf\Internal\Message
{
    /**
     * Controls the memory management policy on the Node.
     * See
     * https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/#policies
     * The following values are allowed.
     * * "none"
     * * "static"
     * The default value is 'none' if unspecified.
     *
     * Generated from protobuf field <code>string policy = 1;</code>
     */
    protected $policy = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $policy
     *           Controls the memory management policy on the Node.
     *           See
     *           https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/#policies
     *           The following values are allowed.
     *           * "none"
     *           * "static"
     *           The default value is 'none' if unspecified.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Controls the memory management policy on the Node.
     * See
     * https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/#policies
     * The following values are allowed.
     * * "none"
     * * "static"
     * The default value is 'none' if unspecified.
     *
     * Generated from protobuf field <code>string policy = 1;</code>
     * @return string
     */
    public function getPolicy()
    {
        return $this->policy;
    }

    /**
     * Controls the memory management policy on the Node.
     * See
     * https://kubernetes.io/docs/tasks/administer-cluster/memory-manager/#policies
     * The following values are allowed.
     * * "none"
     * * "static"
     * The default value is 'none' if unspecified.
     *
     * Generated from protobuf field <code>string policy = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPolicy($var)
    {
        GPBUtil::checkString($var, True);
        $this->policy = $var;

        return $this;
    }

}

