<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/datasources/v1/datasourcetypes.proto

namespace Google\Shopping\Merchant\DataSources\V1;

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

/**
 * The local inventory data source type is only available for file inputs and
 * can't be used to create API local inventory data sources.
 *
 * Generated from protobuf message <code>google.shopping.merchant.datasources.v1.LocalInventoryDataSource</code>
 */
class LocalInventoryDataSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. The feed label of the offers to which the local
     * inventory is provided.
     * Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
     * and dashes (-).
     * See also [migration to feed
     * labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
     *
     * Generated from protobuf field <code>string feed_label = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $feed_label = '';
    /**
     * Required. Immutable. The two-letter ISO 639-1 language of the items to
     * which the local inventory is provided.
     *
     * Generated from protobuf field <code>string content_language = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $content_language = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $feed_label
     *           Required. Immutable. The feed label of the offers to which the local
     *           inventory is provided.
     *           Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
     *           and dashes (-).
     *           See also [migration to feed
     *           labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
     *     @type string $content_language
     *           Required. Immutable. The two-letter ISO 639-1 language of the items to
     *           which the local inventory is provided.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Shopping\Merchant\Datasources\V1\Datasourcetypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. The feed label of the offers to which the local
     * inventory is provided.
     * Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
     * and dashes (-).
     * See also [migration to feed
     * labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
     *
     * Generated from protobuf field <code>string feed_label = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getFeedLabel()
    {
        return $this->feed_label;
    }

    /**
     * Required. Immutable. The feed label of the offers to which the local
     * inventory is provided.
     * Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9),
     * and dashes (-).
     * See also [migration to feed
     * labels](https://developers.google.com/shopping-content/guides/products/feed-labels).
     *
     * Generated from protobuf field <code>string feed_label = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setFeedLabel($var)
    {
        GPBUtil::checkString($var, True);
        $this->feed_label = $var;

        return $this;
    }

    /**
     * Required. Immutable. The two-letter ISO 639-1 language of the items to
     * which the local inventory is provided.
     *
     * Generated from protobuf field <code>string content_language = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getContentLanguage()
    {
        return $this->content_language;
    }

    /**
     * Required. Immutable. The two-letter ISO 639-1 language of the items to
     * which the local inventory is provided.
     *
     * Generated from protobuf field <code>string content_language = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setContentLanguage($var)
    {
        GPBUtil::checkString($var, True);
        $this->content_language = $var;

        return $this;
    }

}

