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

/**
 * The user's intent for this AttachmentGroup. This is the only required field
 * besides the name that must be specified on group creation.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectAttachmentGroupIntent</code>
 */
class InterconnectAttachmentGroupIntent extends \Google\Protobuf\Internal\Message
{
    /**
     * 
     * Check the AvailabilitySla enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string availability_sla = 472702020;</code>
     */
    protected $availability_sla = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $availability_sla
     *           
     *           Check the AvailabilitySla enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

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

    public function hasAvailabilitySla()
    {
        return isset($this->availability_sla);
    }

    public function clearAvailabilitySla()
    {
        unset($this->availability_sla);
    }

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

        return $this;
    }

}

