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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.NetworksUpdatePeeringRequest</code>
 */
class NetworksUpdatePeeringRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.google.cloud.compute.v1.NetworkPeering network_peering = 328926767;</code>
     */
    private $network_peering = null;

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

    /**
     * Generated from protobuf field <code>.google.cloud.compute.v1.NetworkPeering network_peering = 328926767;</code>
     * @return \Google\Cloud\Compute\V1\NetworkPeering|null
     */
    public function getNetworkPeering()
    {
        return isset($this->network_peering) ? $this->network_peering : null;
    }

    public function hasNetworkPeering()
    {
        return isset($this->network_peering);
    }

    public function clearNetworkPeering()
    {
        unset($this->network_peering);
    }

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

        return $this;
    }

}

