<?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.BackendBucketUsedBy</code>
 */
class BackendBucketUsedBy extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket.
     *
     * Generated from protobuf field <code>optional string reference = 148586315;</code>
     */
    protected $reference = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $reference
     *           [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket.
     *
     * Generated from protobuf field <code>optional string reference = 148586315;</code>
     * @return string
     */
    public function getReference()
    {
        return isset($this->reference) ? $this->reference : '';
    }

    public function hasReference()
    {
        return isset($this->reference);
    }

    public function clearReference()
    {
        unset($this->reference);
    }

    /**
     * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket.
     *
     * Generated from protobuf field <code>optional string reference = 148586315;</code>
     * @param string $var
     * @return $this
     */
    public function setReference($var)
    {
        GPBUtil::checkString($var, True);
        $this->reference = $var;

        return $this;
    }

}

