<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v20/resources/product_category_constant.proto

namespace Google\Ads\GoogleAds\V20\Resources\ProductCategoryConstant;

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

/**
 * Localization for the product category.
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.resources.ProductCategoryConstant.ProductCategoryLocalization</code>
 */
class ProductCategoryLocalization extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Upper-case two-letter ISO 3166-1 country code of the
     * localized category.
     *
     * Generated from protobuf field <code>string region_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $region_code = '';
    /**
     * Output only. Two-letter ISO 639-1 language code of the localized
     * category.
     *
     * Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $language_code = '';
    /**
     * Output only. The name of the category in the specified locale.
     *
     * Generated from protobuf field <code>string value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $region_code
     *           Output only. Upper-case two-letter ISO 3166-1 country code of the
     *           localized category.
     *     @type string $language_code
     *           Output only. Two-letter ISO 639-1 language code of the localized
     *           category.
     *     @type string $value
     *           Output only. The name of the category in the specified locale.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Resources\ProductCategoryConstant::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Upper-case two-letter ISO 3166-1 country code of the
     * localized category.
     *
     * Generated from protobuf field <code>string region_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRegionCode()
    {
        return $this->region_code;
    }

    /**
     * Output only. Upper-case two-letter ISO 3166-1 country code of the
     * localized category.
     *
     * Generated from protobuf field <code>string region_code = 1 [(.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;
    }

    /**
     * Output only. Two-letter ISO 639-1 language code of the localized
     * category.
     *
     * Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getLanguageCode()
    {
        return $this->language_code;
    }

    /**
     * Output only. Two-letter ISO 639-1 language code of the localized
     * category.
     *
     * Generated from protobuf field <code>string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setLanguageCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->language_code = $var;

        return $this;
    }

    /**
     * Output only. The name of the category in the specified locale.
     *
     * Generated from protobuf field <code>string value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Output only. The name of the category in the specified locale.
     *
     * Generated from protobuf field <code>string value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProductCategoryLocalization::class, \Google\Ads\GoogleAds\V20\Resources\ProductCategoryConstant_ProductCategoryLocalization::class);

