<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proAudienceLook.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.ProAudienceLook</code>
 */
class ProAudienceLook extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID uuid = 1;</code>
     */
    protected $uuid = null;
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>repeated .rv.data.ProAudienceLook.ProScreenLook screen_looks = 3;</code>
     */
    private $screen_looks;
    /**
     * Generated from protobuf field <code>.rv.data.UUID original_look_uuid = 4;</code>
     */
    protected $original_look_uuid = null;
    /**
     * Generated from protobuf field <code>double transition_duration = 5;</code>
     */
    protected $transition_duration = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\UUID $uuid
     *     @type string $name
     *     @type array<\Rv\Data\ProAudienceLook\ProScreenLook>|\Google\Protobuf\Internal\RepeatedField $screen_looks
     *     @type \Rv\Data\UUID $original_look_uuid
     *     @type float $transition_duration
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProAudienceLook::initOnce();
        parent::__construct($data);
    }

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

    public function hasUuid()
    {
        return isset($this->uuid);
    }

    public function clearUuid()
    {
        unset($this->uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.ProAudienceLook.ProScreenLook screen_looks = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getScreenLooks()
    {
        return $this->screen_looks;
    }

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

        return $this;
    }

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

    public function hasOriginalLookUuid()
    {
        return isset($this->original_look_uuid);
    }

    public function clearOriginalLookUuid()
    {
        unset($this->original_look_uuid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double transition_duration = 5;</code>
     * @return float
     */
    public function getTransitionDuration()
    {
        return $this->transition_duration;
    }

    /**
     * Generated from protobuf field <code>double transition_duration = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setTransitionDuration($var)
    {
        GPBUtil::checkDouble($var);
        $this->transition_duration = $var;

        return $this;
    }

}

