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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.SlideElement</code>
 */
class SlideElement extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element element = 1;</code>
     */
    protected $element = null;
    /**
     * Generated from protobuf field <code>int32 build_index = 2;</code>
     */
    protected $build_index = 0;
    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale base_key = 3;</code>
     */
    protected $base_key = null;
    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale target_key = 4;</code>
     */
    protected $target_key = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;</code>
     */
    private $cookies;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Slide\Element $element
     *     @type int $build_index
     *     @type \Rv\Data\MusicKeyScale $base_key
     *     @type \Rv\Data\MusicKeyScale $target_key
     *     @type array<\Rv\Data\WebFillTokenAndCookies\Cookie>|\Google\Protobuf\Internal\RepeatedField $cookies
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Rv2D::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element element = 1;</code>
     * @return \Rv\Data\Slide\Element|null
     */
    public function getElement()
    {
        return $this->element;
    }

    public function hasElement()
    {
        return isset($this->element);
    }

    public function clearElement()
    {
        unset($this->element);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element element = 1;</code>
     * @param \Rv\Data\Slide\Element $var
     * @return $this
     */
    public function setElement($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element::class);
        $this->element = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale base_key = 3;</code>
     * @return \Rv\Data\MusicKeyScale|null
     */
    public function getBaseKey()
    {
        return $this->base_key;
    }

    public function hasBaseKey()
    {
        return isset($this->base_key);
    }

    public function clearBaseKey()
    {
        unset($this->base_key);
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale base_key = 3;</code>
     * @param \Rv\Data\MusicKeyScale $var
     * @return $this
     */
    public function setBaseKey($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\MusicKeyScale::class);
        $this->base_key = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale target_key = 4;</code>
     * @return \Rv\Data\MusicKeyScale|null
     */
    public function getTargetKey()
    {
        return $this->target_key;
    }

    public function hasTargetKey()
    {
        return isset($this->target_key);
    }

    public function clearTargetKey()
    {
        unset($this->target_key);
    }

    /**
     * Generated from protobuf field <code>.rv.data.MusicKeyScale target_key = 4;</code>
     * @param \Rv\Data\MusicKeyScale $var
     * @return $this
     */
    public function setTargetKey($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\MusicKeyScale::class);
        $this->target_key = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCookies()
    {
        return $this->cookies;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.WebFillTokenAndCookies.Cookie cookies = 5;</code>
     * @param array<\Rv\Data\WebFillTokenAndCookies\Cookie>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCookies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\WebFillTokenAndCookies\Cookie::class);
        $this->cookies = $arr;

        return $this;
    }

}

