<?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.BusinessBroadcastListAction</code>
 */
class BusinessBroadcastListAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool deleted = 1;</code>
     */
    protected $deleted = null;
    /**
     * Generated from protobuf field <code>repeated .proto.SyncActionValue.BroadcastListParticipant participants = 2;</code>
     */
    private $participants;
    /**
     * Generated from protobuf field <code>optional string listName = 3;</code>
     */
    protected $listName = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $deleted
     *     @type \PhpWA\Protocol\Proto\SyncActionValue\BroadcastListParticipant[] $participants
     *     @type string $listName
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bool deleted = 1;</code>
     * @return bool
     */
    public function getDeleted()
    {
        return isset($this->deleted) ? $this->deleted : false;
    }

    public function hasDeleted()
    {
        return isset($this->deleted);
    }

    public function clearDeleted()
    {
        unset($this->deleted);
    }

    /**
     * Generated from protobuf field <code>optional bool deleted = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setDeleted($var)
    {
        GPBUtil::checkBool($var);
        $this->deleted = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string listName = 3;</code>
     * @return string
     */
    public function getListName()
    {
        return isset($this->listName) ? $this->listName : '';
    }

    public function hasListName()
    {
        return isset($this->listName);
    }

    public function clearListName()
    {
        unset($this->listName);
    }

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

        return $this;
    }

}

