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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.AlbumMessage</code>
 */
class AlbumMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 expectedImageCount = 2;</code>
     */
    protected $expectedImageCount = null;
    /**
     * Generated from protobuf field <code>optional uint32 expectedVideoCount = 3;</code>
     */
    protected $expectedVideoCount = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     */
    protected $contextInfo = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $expectedImageCount
     *     @type int $expectedVideoCount
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasExpectedImageCount()
    {
        return isset($this->expectedImageCount);
    }

    public function clearExpectedImageCount()
    {
        unset($this->expectedImageCount);
    }

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

        return $this;
    }

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

    public function hasExpectedVideoCount()
    {
        return isset($this->expectedVideoCount);
    }

    public function clearExpectedVideoCount()
    {
        unset($this->expectedVideoCount);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

}

