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

namespace PhpWA\Protocol\Proto\SyncActionValue;

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

/**
 * Generated from protobuf message <code>proto.SyncActionValue.AvatarUpdatedAction</code>
 */
class AvatarUpdatedAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType eventType = 1;</code>
     */
    protected $eventType = null;
    /**
     * Generated from protobuf field <code>repeated .proto.SyncActionValue.StickerAction recentAvatarStickers = 2;</code>
     */
    private $recentAvatarStickers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $eventType
     *     @type \PhpWA\Protocol\Proto\SyncActionValue\StickerAction[] $recentAvatarStickers
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType eventType = 1;</code>
     * @return int
     */
    public function getEventType()
    {
        return isset($this->eventType) ? $this->eventType : 0;
    }

    public function hasEventType()
    {
        return isset($this->eventType);
    }

    public function clearEventType()
    {
        unset($this->eventType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.AvatarUpdatedAction.AvatarEventType eventType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setEventType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\SyncActionValue\AvatarUpdatedAction\AvatarEventType::class);
        $this->eventType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.SyncActionValue.StickerAction recentAvatarStickers = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\SyncActionValue\StickerAction>
     */
    public function getRecentAvatarStickers()
    {
        return $this->recentAvatarStickers;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.SyncActionValue.StickerAction recentAvatarStickers = 2;</code>
     * @param \PhpWA\Protocol\Proto\SyncActionValue\StickerAction[] $var
     * @return $this
     */
    public function setRecentAvatarStickers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\SyncActionValue\StickerAction::class);
        $this->recentAvatarStickers = $arr;

        return $this;
    }

}

