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

/**
 * Configuration for Binary Authorization.
 *
 * Generated from protobuf message <code>google.container.v1.BinaryAuthorization</code>
 */
class BinaryAuthorization extends \Google\Protobuf\Internal\Message
{
    /**
     * Enable Binary Authorization for this cluster. If enabled, all container
     * images will be validated by Binary Authorization.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     */
    private $enabled = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enabled
     *           Enable Binary Authorization for this cluster. If enabled, all container
     *           images will be validated by Binary Authorization.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Enable Binary Authorization for this cluster. If enabled, all container
     * images will be validated by Binary Authorization.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

    /**
     * Enable Binary Authorization for this cluster. If enabled, all container
     * images will be validated by Binary Authorization.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

}

