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

namespace PhpWA\Protocol\Proto\Message\ProductMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.ProductMessage.ProductSnapshot</code>
 */
class ProductSnapshot extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message.ImageMessage productImage = 1;</code>
     */
    protected $productImage = null;
    /**
     * Generated from protobuf field <code>optional string productId = 2;</code>
     */
    protected $productId = null;
    /**
     * Generated from protobuf field <code>optional string title = 3;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string description = 4;</code>
     */
    protected $description = null;
    /**
     * Generated from protobuf field <code>optional string currencyCode = 5;</code>
     */
    protected $currencyCode = null;
    /**
     * Generated from protobuf field <code>optional int64 priceAmount1000 = 6;</code>
     */
    protected $priceAmount1000 = null;
    /**
     * Generated from protobuf field <code>optional string retailerId = 7;</code>
     */
    protected $retailerId = null;
    /**
     * Generated from protobuf field <code>optional string url = 8;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional uint32 productImageCount = 9;</code>
     */
    protected $productImageCount = null;
    /**
     * Generated from protobuf field <code>optional string firstImageId = 11;</code>
     */
    protected $firstImageId = null;
    /**
     * Generated from protobuf field <code>optional int64 salePriceAmount1000 = 12;</code>
     */
    protected $salePriceAmount1000 = null;
    /**
     * Generated from protobuf field <code>optional string signedUrl = 13;</code>
     */
    protected $signedUrl = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\Message\ImageMessage $productImage
     *     @type string $productId
     *     @type string $title
     *     @type string $description
     *     @type string $currencyCode
     *     @type int|string $priceAmount1000
     *     @type string $retailerId
     *     @type string $url
     *     @type int $productImageCount
     *     @type string $firstImageId
     *     @type int|string $salePriceAmount1000
     *     @type string $signedUrl
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ImageMessage productImage = 1;</code>
     * @return \PhpWA\Protocol\Proto\Message\ImageMessage|null
     */
    public function getProductImage()
    {
        return $this->productImage;
    }

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 priceAmount1000 = 6;</code>
     * @return int|string
     */
    public function getPriceAmount1000()
    {
        return isset($this->priceAmount1000) ? $this->priceAmount1000 : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 priceAmount1000 = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPriceAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->priceAmount1000 = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 productImageCount = 9;</code>
     * @return int
     */
    public function getProductImageCount()
    {
        return isset($this->productImageCount) ? $this->productImageCount : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint32 productImageCount = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setProductImageCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->productImageCount = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 salePriceAmount1000 = 12;</code>
     * @return int|string
     */
    public function getSalePriceAmount1000()
    {
        return isset($this->salePriceAmount1000) ? $this->salePriceAmount1000 : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 salePriceAmount1000 = 12;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSalePriceAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->salePriceAmount1000 = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

}

