<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: dy.proto

namespace Douyin;

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

/**
 * Generated from protobuf message <code>douyin.ProductInfo</code>
 */
class ProductInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 promotionId = 1;</code>
     */
    protected $promotionId = 0;
    /**
     * Generated from protobuf field <code>int32 index = 2;</code>
     */
    protected $index = 0;
    /**
     * Generated from protobuf field <code>repeated int64 targetFlashUidsList = 3;</code>
     */
    private $targetFlashUidsList;
    /**
     * Generated from protobuf field <code>int64 explainType = 4;</code>
     */
    protected $explainType = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $promotionId
     *     @type int $index
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $targetFlashUidsList
     *     @type int|string $explainType
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Dy::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 promotionId = 1;</code>
     * @return int|string
     */
    public function getPromotionId()
    {
        return $this->promotionId;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 index = 2;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * Generated from protobuf field <code>int32 index = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->index = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated int64 targetFlashUidsList = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTargetFlashUidsList()
    {
        return $this->targetFlashUidsList;
    }

    /**
     * Generated from protobuf field <code>repeated int64 targetFlashUidsList = 3;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTargetFlashUidsList($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->targetFlashUidsList = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 explainType = 4;</code>
     * @return int|string
     */
    public function getExplainType()
    {
        return $this->explainType;
    }

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

        return $this;
    }

}

