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

namespace Google\Cloud\Compute\V1;

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

/**
 * [Output Only] Which SLA this group is configured to support, and why this
 * group does or does not meet that SLA's requirements.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLA</code>
 */
class InterconnectAttachmentGroupConfiguredAvailabilitySLA extends \Google\Protobuf\Internal\Message
{
    /**
     * 
     * Check the EffectiveSla enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string effective_sla = 144173712;</code>
     */
    protected $effective_sla = null;
    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers intended_sla_blockers = 448370308;</code>
     */
    private $intended_sla_blockers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $effective_sla
     *           
     *           Check the EffectiveSla enum for the list of possible values.
     *     @type array<\Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers>|\Google\Protobuf\Internal\RepeatedField $intended_sla_blockers
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * 
     * Check the EffectiveSla enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string effective_sla = 144173712;</code>
     * @return string
     */
    public function getEffectiveSla()
    {
        return isset($this->effective_sla) ? $this->effective_sla : '';
    }

    public function hasEffectiveSla()
    {
        return isset($this->effective_sla);
    }

    public function clearEffectiveSla()
    {
        unset($this->effective_sla);
    }

    /**
     * 
     * Check the EffectiveSla enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string effective_sla = 144173712;</code>
     * @param string $var
     * @return $this
     */
    public function setEffectiveSla($var)
    {
        GPBUtil::checkString($var, True);
        $this->effective_sla = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers intended_sla_blockers = 448370308;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIntendedSlaBlockers()
    {
        return $this->intended_sla_blockers;
    }

    /**
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers intended_sla_blockers = 448370308;</code>
     * @param array<\Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIntendedSlaBlockers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers::class);
        $this->intended_sla_blockers = $arr;

        return $this;
    }

}

