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

namespace Google\Shopping\Merchant\Products\V1\ProductAttributes;

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

/**
 * The business days during which orders are on their path to fulfillment.
 * If not provided, Monday to Friday business days will be assumed.
 *
 * Generated from protobuf message <code>google.shopping.merchant.products.v1.ProductAttributes.ShippingBusinessDaysConfig</code>
 */
class ShippingBusinessDaysConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The [CLDR territory
     * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
     * of the country to which an item will ship.
     *
     * Generated from protobuf field <code>optional string country = 1;</code>
     */
    protected $country = null;
    /**
     * Effective days of the week considered for the delivery time calculation.
     * May not be empty. The more business days included the faster the
     * delivery. Can be set through individual days (e.g. `MTWRF`), or day
     * ranges (e.g. `Mon-Fri`). For more information about accepted formats,
     * see [Shipping handling business
     * days](https://support.google.com/merchants/answer/16072859).
     *
     * Generated from protobuf field <code>optional string business_days = 2;</code>
     */
    protected $business_days = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $country
     *           The [CLDR territory
     *           code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
     *           of the country to which an item will ship.
     *     @type string $business_days
     *           Effective days of the week considered for the delivery time calculation.
     *           May not be empty. The more business days included the faster the
     *           delivery. Can be set through individual days (e.g. `MTWRF`), or day
     *           ranges (e.g. `Mon-Fri`). For more information about accepted formats,
     *           see [Shipping handling business
     *           days](https://support.google.com/merchants/answer/16072859).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Shopping\Merchant\Products\V1\ProductsCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The [CLDR territory
     * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
     * of the country to which an item will ship.
     *
     * Generated from protobuf field <code>optional string country = 1;</code>
     * @return string
     */
    public function getCountry()
    {
        return isset($this->country) ? $this->country : '';
    }

    public function hasCountry()
    {
        return isset($this->country);
    }

    public function clearCountry()
    {
        unset($this->country);
    }

    /**
     * The [CLDR territory
     * code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
     * of the country to which an item will ship.
     *
     * Generated from protobuf field <code>optional string country = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCountry($var)
    {
        GPBUtil::checkString($var, True);
        $this->country = $var;

        return $this;
    }

    /**
     * Effective days of the week considered for the delivery time calculation.
     * May not be empty. The more business days included the faster the
     * delivery. Can be set through individual days (e.g. `MTWRF`), or day
     * ranges (e.g. `Mon-Fri`). For more information about accepted formats,
     * see [Shipping handling business
     * days](https://support.google.com/merchants/answer/16072859).
     *
     * Generated from protobuf field <code>optional string business_days = 2;</code>
     * @return string
     */
    public function getBusinessDays()
    {
        return isset($this->business_days) ? $this->business_days : '';
    }

    public function hasBusinessDays()
    {
        return isset($this->business_days);
    }

    public function clearBusinessDays()
    {
        unset($this->business_days);
    }

    /**
     * Effective days of the week considered for the delivery time calculation.
     * May not be empty. The more business days included the faster the
     * delivery. Can be set through individual days (e.g. `MTWRF`), or day
     * ranges (e.g. `Mon-Fri`). For more information about accepted formats,
     * see [Shipping handling business
     * days](https://support.google.com/merchants/answer/16072859).
     *
     * Generated from protobuf field <code>optional string business_days = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setBusinessDays($var)
    {
        GPBUtil::checkString($var, True);
        $this->business_days = $var;

        return $this;
    }

}

