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

namespace Google\Shopping\Css\V1;

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

/**
 * The product details.
 *
 * Generated from protobuf message <code>google.shopping.css.v1.ProductDetail</code>
 */
class ProductDetail extends \Google\Protobuf\Internal\Message
{
    /**
     * The section header used to group a set of product details.
     *
     * Generated from protobuf field <code>string section_name = 1;</code>
     */
    protected $section_name = '';
    /**
     * The name of the product detail.
     *
     * Generated from protobuf field <code>string attribute_name = 2;</code>
     */
    protected $attribute_name = '';
    /**
     * The value of the product detail.
     *
     * Generated from protobuf field <code>string attribute_value = 3;</code>
     */
    protected $attribute_value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $section_name
     *           The section header used to group a set of product details.
     *     @type string $attribute_name
     *           The name of the product detail.
     *     @type string $attribute_value
     *           The value of the product detail.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Shopping\Css\V1\CssProductCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The section header used to group a set of product details.
     *
     * Generated from protobuf field <code>string section_name = 1;</code>
     * @return string
     */
    public function getSectionName()
    {
        return $this->section_name;
    }

    /**
     * The section header used to group a set of product details.
     *
     * Generated from protobuf field <code>string section_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSectionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->section_name = $var;

        return $this;
    }

    /**
     * The name of the product detail.
     *
     * Generated from protobuf field <code>string attribute_name = 2;</code>
     * @return string
     */
    public function getAttributeName()
    {
        return $this->attribute_name;
    }

    /**
     * The name of the product detail.
     *
     * Generated from protobuf field <code>string attribute_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAttributeName($var)
    {
        GPBUtil::checkString($var, True);
        $this->attribute_name = $var;

        return $this;
    }

    /**
     * The value of the product detail.
     *
     * Generated from protobuf field <code>string attribute_value = 3;</code>
     * @return string
     */
    public function getAttributeValue()
    {
        return $this->attribute_value;
    }

    /**
     * The value of the product detail.
     *
     * Generated from protobuf field <code>string attribute_value = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setAttributeValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->attribute_value = $var;

        return $this;
    }

}

