<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Constraints applied to pods.
 *
 * Generated from protobuf message <code>google.container.v1.MaxPodsConstraint</code>
 */
class MaxPodsConstraint extends \Google\Protobuf\Internal\Message
{
    /**
     * Constraint enforced on the max num of pods per node.
     *
     * Generated from protobuf field <code>int64 max_pods_per_node = 1;</code>
     */
    private $max_pods_per_node = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $max_pods_per_node
     *           Constraint enforced on the max num of pods per node.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Constraint enforced on the max num of pods per node.
     *
     * Generated from protobuf field <code>int64 max_pods_per_node = 1;</code>
     * @return int|string
     */
    public function getMaxPodsPerNode()
    {
        return $this->max_pods_per_node;
    }

    /**
     * Constraint enforced on the max num of pods per node.
     *
     * Generated from protobuf field <code>int64 max_pods_per_node = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxPodsPerNode($var)
    {
        GPBUtil::checkInt64($var);
        $this->max_pods_per_node = $var;

        return $this;
    }

}

