<?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.StatusPrivacyAction</code>
 */
class StatusPrivacyAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode mode = 1;</code>
     */
    protected $mode = null;
    /**
     * Generated from protobuf field <code>repeated string userJid = 2;</code>
     */
    private $userJid;

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

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

    public function hasMode()
    {
        return isset($this->mode);
    }

    public function clearMode()
    {
        unset($this->mode);
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>repeated string userJid = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setUserJid($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->userJid = $arr;

        return $this;
    }

}

