<?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 options for the Cloud Run feature.
 *
 * Generated from protobuf message <code>google.container.v1.CloudRunConfig</code>
 */
class CloudRunConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether Cloud Run addon is enabled for this cluster.
     *
     * Generated from protobuf field <code>bool disabled = 1;</code>
     */
    protected $disabled = false;
    /**
     * Which load balancer type is installed for Cloud Run.
     *
     * Generated from protobuf field <code>.google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3;</code>
     */
    protected $load_balancer_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $disabled
     *           Whether Cloud Run addon is enabled for this cluster.
     *     @type int $load_balancer_type
     *           Which load balancer type is installed for Cloud Run.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether Cloud Run addon is enabled for this cluster.
     *
     * Generated from protobuf field <code>bool disabled = 1;</code>
     * @return bool
     */
    public function getDisabled()
    {
        return $this->disabled;
    }

    /**
     * Whether Cloud Run addon is enabled for this cluster.
     *
     * Generated from protobuf field <code>bool disabled = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisabled($var)
    {
        GPBUtil::checkBool($var);
        $this->disabled = $var;

        return $this;
    }

    /**
     * Which load balancer type is installed for Cloud Run.
     *
     * Generated from protobuf field <code>.google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3;</code>
     * @return int
     */
    public function getLoadBalancerType()
    {
        return $this->load_balancer_type;
    }

    /**
     * Which load balancer type is installed for Cloud Run.
     *
     * Generated from protobuf field <code>.google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLoadBalancerType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\CloudRunConfig\LoadBalancerType::class);
        $this->load_balancer_type = $var;

        return $this;
    }

}

