<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Clear.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.API_v1_ClearGroup</code>
 */
class API_v1_ClearGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Identifier id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>string icon = 2;</code>
     */
    protected $icon = '';
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Color tint = 3;</code>
     */
    protected $tint = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_ClearGroup.API_v1_ClearGroupLayerType layers = 4;</code>
     */
    private $layers;
    /**
     * Generated from protobuf field <code>bool stop_timeline_announcements = 5;</code>
     */
    protected $stop_timeline_announcements = false;
    /**
     * Generated from protobuf field <code>bool stop_timeline_presentation = 6;</code>
     */
    protected $stop_timeline_presentation = false;
    /**
     * Generated from protobuf field <code>bool clear_next_presentation = 7;</code>
     */
    protected $clear_next_presentation = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Identifier $id
     *     @type string $icon
     *     @type \Rv\Data\API_v1_Color $tint
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $layers
     *     @type bool $stop_timeline_announcements
     *     @type bool $stop_timeline_presentation
     *     @type bool $clear_next_presentation
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Clear::initOnce();
        parent::__construct($data);
    }

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

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasTint()
    {
        return isset($this->tint);
    }

    public function clearTint()
    {
        unset($this->tint);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_ClearGroup.API_v1_ClearGroupLayerType layers = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLayers()
    {
        return $this->layers;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.API_v1_ClearGroup.API_v1_ClearGroupLayerType layers = 4;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLayers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Rv\Data\API_v1_ClearGroup\API_v1_ClearGroupLayerType::class);
        $this->layers = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool stop_timeline_announcements = 5;</code>
     * @return bool
     */
    public function getStopTimelineAnnouncements()
    {
        return $this->stop_timeline_announcements;
    }

    /**
     * Generated from protobuf field <code>bool stop_timeline_announcements = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setStopTimelineAnnouncements($var)
    {
        GPBUtil::checkBool($var);
        $this->stop_timeline_announcements = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool stop_timeline_presentation = 6;</code>
     * @return bool
     */
    public function getStopTimelinePresentation()
    {
        return $this->stop_timeline_presentation;
    }

    /**
     * Generated from protobuf field <code>bool stop_timeline_presentation = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setStopTimelinePresentation($var)
    {
        GPBUtil::checkBool($var);
        $this->stop_timeline_presentation = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool clear_next_presentation = 7;</code>
     * @return bool
     */
    public function getClearNextPresentation()
    {
        return $this->clear_next_presentation;
    }

    /**
     * Generated from protobuf field <code>bool clear_next_presentation = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setClearNextPresentation($var)
    {
        GPBUtil::checkBool($var);
        $this->clear_next_presentation = $var;

        return $this;
    }

}

