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

/**
 * Response for the InterconnectAttachmentGroupsGetOperationalStatusResponse.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectAttachmentGroupsGetOperationalStatusResponse</code>
 */
class InterconnectAttachmentGroupsGetOperationalStatusResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string etag = 3123477;</code>
     */
    protected $etag = null;
    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatus result = 139315229;</code>
     */
    protected $result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $etag
     *     @type \Google\Cloud\Compute\V1\InterconnectAttachmentGroupsOperationalStatus $result
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string etag = 3123477;</code>
     * @return string
     */
    public function getEtag()
    {
        return isset($this->etag) ? $this->etag : '';
    }

    public function hasEtag()
    {
        return isset($this->etag);
    }

    public function clearEtag()
    {
        unset($this->etag);
    }

    /**
     * Generated from protobuf field <code>optional string etag = 3123477;</code>
     * @param string $var
     * @return $this
     */
    public function setEtag($var)
    {
        GPBUtil::checkString($var, True);
        $this->etag = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatus result = 139315229;</code>
     * @return \Google\Cloud\Compute\V1\InterconnectAttachmentGroupsOperationalStatus|null
     */
    public function getResult()
    {
        return $this->result;
    }

    public function hasResult()
    {
        return isset($this->result);
    }

    public function clearResult()
    {
        unset($this->result);
    }

    /**
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.InterconnectAttachmentGroupsOperationalStatus result = 139315229;</code>
     * @param \Google\Cloud\Compute\V1\InterconnectAttachmentGroupsOperationalStatus $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\InterconnectAttachmentGroupsOperationalStatus::class);
        $this->result = $var;

        return $this;
    }

}

