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

/**
 * Response for the InterconnectGroupsGetOperationalStatusResponse.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InterconnectGroupsGetOperationalStatusResponse</code>
 */
class InterconnectGroupsGetOperationalStatusResponse 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.InterconnectGroupsOperationalStatus 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\InterconnectGroupsOperationalStatus $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.InterconnectGroupsOperationalStatus result = 139315229;</code>
     * @return \Google\Cloud\Compute\V1\InterconnectGroupsOperationalStatus|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.InterconnectGroupsOperationalStatus result = 139315229;</code>
     * @param \Google\Cloud\Compute\V1\InterconnectGroupsOperationalStatus $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\InterconnectGroupsOperationalStatus::class);
        $this->result = $var;

        return $this;
    }

}

