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

namespace Google\Cloud\HypercomputeCluster\V1beta;

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

/**
 * A reference to a [VPC network](https://cloud.google.com/vpc/docs/vpc) in
 * Google Compute Engine.
 *
 * Generated from protobuf message <code>google.cloud.hypercomputecluster.v1beta.NetworkReference</code>
 */
class NetworkReference extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Name of the network, in the format
     * `projects/{project}/global/networks/{network}`.
     *
     * Generated from protobuf field <code>string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $network = '';
    /**
     * Output only. Name of the particular subnetwork being used by the cluster,
     * in the format
     * `projects/{project}/regions/{region}/subnetworks/{subnetwork}`.
     *
     * Generated from protobuf field <code>string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $subnetwork = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $network
     *           Output only. Name of the network, in the format
     *           `projects/{project}/global/networks/{network}`.
     *     @type string $subnetwork
     *           Output only. Name of the particular subnetwork being used by the cluster,
     *           in the format
     *           `projects/{project}/regions/{region}/subnetworks/{subnetwork}`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Hypercomputecluster\V1Beta\HypercomputeCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Name of the network, in the format
     * `projects/{project}/global/networks/{network}`.
     *
     * Generated from protobuf field <code>string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getNetwork()
    {
        return $this->network;
    }

    /**
     * Output only. Name of the network, in the format
     * `projects/{project}/global/networks/{network}`.
     *
     * Generated from protobuf field <code>string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setNetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->network = $var;

        return $this;
    }

    /**
     * Output only. Name of the particular subnetwork being used by the cluster,
     * in the format
     * `projects/{project}/regions/{region}/subnetworks/{subnetwork}`.
     *
     * Generated from protobuf field <code>string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getSubnetwork()
    {
        return $this->subnetwork;
    }

    /**
     * Output only. Name of the particular subnetwork being used by the cluster,
     * in the format
     * `projects/{project}/regions/{region}/subnetworks/{subnetwork}`.
     *
     * Generated from protobuf field <code>string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setSubnetwork($var)
    {
        GPBUtil::checkString($var, True);
        $this->subnetwork = $var;

        return $this;
    }

}

