<?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;

/**
 * SandboxConfig contains configurations of the sandbox to use for the node.
 *
 * Generated from protobuf message <code>google.container.v1.SandboxConfig</code>
 */
class SandboxConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Type of the sandbox to use for the node.
     *
     * Generated from protobuf field <code>.google.container.v1.SandboxConfig.Type type = 2;</code>
     */
    private $type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *           Type of the sandbox to use for the node.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Type of the sandbox to use for the node.
     *
     * Generated from protobuf field <code>.google.container.v1.SandboxConfig.Type type = 2;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Type of the sandbox to use for the node.
     *
     * Generated from protobuf field <code>.google.container.v1.SandboxConfig.Type type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class);
        $this->type = $var;

        return $this;
    }

}

