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

namespace Google\Ads\AdManager\V1;

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

/**
 * Represents a mobile carrier.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.MobileCarrier</code>
 */
class MobileCarrier extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the `MobileCarrier`.
     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. The localized name of the mobile carrier.
     *
     * Generated from protobuf field <code>optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $display_name = null;
    /**
     * Output only. The region code of the mobile carrier.
     *
     * Generated from protobuf field <code>optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $region_code = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the `MobileCarrier`.
     *           Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
     *     @type string $display_name
     *           Output only. The localized name of the mobile carrier.
     *     @type string $region_code
     *           Output only. The region code of the mobile carrier.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\MobileCarrierMessages::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Identifier. The resource name of the `MobileCarrier`.
     * Format: `networks/{network_code}/mobileCarriers/{mobile_carrier}`
     *
     * Generated from protobuf field <code>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 mobile carrier.
     *
     * 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 mobile carrier.
     *
     * 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;
    }

    /**
     * Output only. The region code of the mobile carrier.
     *
     * Generated from protobuf field <code>optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRegionCode()
    {
        return isset($this->region_code) ? $this->region_code : '';
    }

    public function hasRegionCode()
    {
        return isset($this->region_code);
    }

    public function clearRegionCode()
    {
        unset($this->region_code);
    }

    /**
     * Output only. The region code of the mobile carrier.
     *
     * Generated from protobuf field <code>optional string region_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setRegionCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->region_code = $var;

        return $this;
    }

}

