<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/bandwidth_group_messages.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * Represents a group of bandwidths that are logically organized by some well
 * known generic name such as 'Cable' or 'DSL'.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.BandwidthGroup</code>
 */
class BandwidthGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the `BandwidthGroup`.
     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
     *
     * Generated from protobuf field <code>optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = null;
    /**
     * Output only. The localized name of the bandwidth group.
     *
     * Generated from protobuf field <code>optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $display_name = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the `BandwidthGroup`.
     *           Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
     *     @type string $display_name
     *           Output only. The localized name of the bandwidth group.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\BandwidthGroupMessages::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name of the `BandwidthGroup`.
     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
     *
     * Generated from protobuf field <code>optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return isset($this->name) ? $this->name : '';
    }

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

    /**
     * Identifier. The resource name of the `BandwidthGroup`.
     * Format: `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}`
     *
     * Generated from protobuf field <code>optional string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. The localized name of the bandwidth group.
     *
     * Generated from protobuf field <code>optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return isset($this->display_name) ? $this->display_name : '';
    }

    public function hasDisplayName()
    {
        return isset($this->display_name);
    }

    public function clearDisplayName()
    {
        unset($this->display_name);
    }

    /**
     * Output only. The localized name of the bandwidth group.
     *
     * Generated from protobuf field <code>optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

