<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message\ListMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.ListMessage.ProductListInfo</code>
 */
class ProductListInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .proto.Message.ListMessage.ProductSection productSections = 1;</code>
     */
    private $productSections;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ListMessage.ProductListHeaderImage headerImage = 2;</code>
     */
    protected $headerImage = null;
    /**
     * Generated from protobuf field <code>optional string businessOwnerJid = 3;</code>
     */
    protected $businessOwnerJid = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\ListMessage\ProductSection[] $productSections
     *     @type \PhpWA\Protocol\Proto\Message\ListMessage\ProductListHeaderImage $headerImage
     *     @type string $businessOwnerJid
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.ListMessage.ProductSection productSections = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\ListMessage\ProductSection>
     */
    public function getProductSections()
    {
        return $this->productSections;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.ListMessage.ProductSection productSections = 1;</code>
     * @param \PhpWA\Protocol\Proto\Message\ListMessage\ProductSection[] $var
     * @return $this
     */
    public function setProductSections($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\ListMessage\ProductSection::class);
        $this->productSections = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ListMessage.ProductListHeaderImage headerImage = 2;</code>
     * @return \PhpWA\Protocol\Proto\Message\ListMessage\ProductListHeaderImage|null
     */
    public function getHeaderImage()
    {
        return $this->headerImage;
    }

    public function hasHeaderImage()
    {
        return isset($this->headerImage);
    }

    public function clearHeaderImage()
    {
        unset($this->headerImage);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ListMessage.ProductListHeaderImage headerImage = 2;</code>
     * @param \PhpWA\Protocol\Proto\Message\ListMessage\ProductListHeaderImage $var
     * @return $this
     */
    public function setHeaderImage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ListMessage\ProductListHeaderImage::class);
        $this->headerImage = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string businessOwnerJid = 3;</code>
     * @return string
     */
    public function getBusinessOwnerJid()
    {
        return isset($this->businessOwnerJid) ? $this->businessOwnerJid : '';
    }

    public function hasBusinessOwnerJid()
    {
        return isset($this->businessOwnerJid);
    }

    public function clearBusinessOwnerJid()
    {
        unset($this->businessOwnerJid);
    }

    /**
     * Generated from protobuf field <code>optional string businessOwnerJid = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setBusinessOwnerJid($var)
    {
        GPBUtil::checkString($var, True);
        $this->businessOwnerJid = $var;

        return $this;
    }

}

