<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\ProductMessage;

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




class ProductSnapshot extends \Google\Protobuf\Internal\Message
{
    


    protected $productImage = null;
    


    protected $productId = null;
    


    protected $title = null;
    


    protected $description = null;
    


    protected $currencyCode = null;
    


    protected $priceAmount1000 = null;
    


    protected $retailerId = null;
    


    protected $url = null;
    


    protected $productImageCount = null;
    


    protected $firstImageId = null;
    


    protected $salePriceAmount1000 = null;
    


    protected $signedUrl = null;

    



















    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getProductImage()
    {
        return $this->productImage;
    }

    public function hasProductImage()
    {
        return isset($this->productImage);
    }

    public function clearProductImage()
    {
        unset($this->productImage);
    }

    




    public function setProductImage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\ImageMessage::class);
        $this->productImage = $var;

        return $this;
    }

    



    public function getProductId()
    {
        return isset($this->productId) ? $this->productId : '';
    }

    public function hasProductId()
    {
        return isset($this->productId);
    }

    public function clearProductId()
    {
        unset($this->productId);
    }

    




    public function setProductId($var)
    {
        GPBUtil::checkString($var, True);
        $this->productId = $var;

        return $this;
    }

    



    public function getTitle()
    {
        return isset($this->title) ? $this->title : '';
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

    




    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    



    public function getDescription()
    {
        return isset($this->description) ? $this->description : '';
    }

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

    




    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    



    public function getCurrencyCode()
    {
        return isset($this->currencyCode) ? $this->currencyCode : '';
    }

    public function hasCurrencyCode()
    {
        return isset($this->currencyCode);
    }

    public function clearCurrencyCode()
    {
        unset($this->currencyCode);
    }

    




    public function setCurrencyCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->currencyCode = $var;

        return $this;
    }

    



    public function getPriceAmount1000()
    {
        return isset($this->priceAmount1000) ? $this->priceAmount1000 : 0;
    }

    public function hasPriceAmount1000()
    {
        return isset($this->priceAmount1000);
    }

    public function clearPriceAmount1000()
    {
        unset($this->priceAmount1000);
    }

    




    public function setPriceAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->priceAmount1000 = $var;

        return $this;
    }

    



    public function getRetailerId()
    {
        return isset($this->retailerId) ? $this->retailerId : '';
    }

    public function hasRetailerId()
    {
        return isset($this->retailerId);
    }

    public function clearRetailerId()
    {
        unset($this->retailerId);
    }

    




    public function setRetailerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->retailerId = $var;

        return $this;
    }

    



    public function getUrl()
    {
        return isset($this->url) ? $this->url : '';
    }

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

    




    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $var;

        return $this;
    }

    



    public function getProductImageCount()
    {
        return isset($this->productImageCount) ? $this->productImageCount : 0;
    }

    public function hasProductImageCount()
    {
        return isset($this->productImageCount);
    }

    public function clearProductImageCount()
    {
        unset($this->productImageCount);
    }

    




    public function setProductImageCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->productImageCount = $var;

        return $this;
    }

    



    public function getFirstImageId()
    {
        return isset($this->firstImageId) ? $this->firstImageId : '';
    }

    public function hasFirstImageId()
    {
        return isset($this->firstImageId);
    }

    public function clearFirstImageId()
    {
        unset($this->firstImageId);
    }

    




    public function setFirstImageId($var)
    {
        GPBUtil::checkString($var, True);
        $this->firstImageId = $var;

        return $this;
    }

    



    public function getSalePriceAmount1000()
    {
        return isset($this->salePriceAmount1000) ? $this->salePriceAmount1000 : 0;
    }

    public function hasSalePriceAmount1000()
    {
        return isset($this->salePriceAmount1000);
    }

    public function clearSalePriceAmount1000()
    {
        unset($this->salePriceAmount1000);
    }

    




    public function setSalePriceAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->salePriceAmount1000 = $var;

        return $this;
    }

    



    public function getSignedUrl()
    {
        return isset($this->signedUrl) ? $this->signedUrl : '';
    }

    public function hasSignedUrl()
    {
        return isset($this->signedUrl);
    }

    public function clearSignedUrl()
    {
        unset($this->signedUrl);
    }

    




    public function setSignedUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->signedUrl = $var;

        return $this;
    }

}

