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

namespace PhpWA\Protocol\Proto\Message\CallLogMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.CallLogMessage.CallParticipant</code>
 */
class CallParticipant extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string jid = 1;</code>
     */
    protected $jid = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.CallLogMessage.CallOutcome callOutcome = 2;</code>
     */
    protected $callOutcome = null;

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

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

    public function hasJid()
    {
        return isset($this->jid);
    }

    public function clearJid()
    {
        unset($this->jid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.CallLogMessage.CallOutcome callOutcome = 2;</code>
     * @return int
     */
    public function getCallOutcome()
    {
        return isset($this->callOutcome) ? $this->callOutcome : 0;
    }

    public function hasCallOutcome()
    {
        return isset($this->callOutcome);
    }

    public function clearCallOutcome()
    {
        unset($this->callOutcome);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.CallLogMessage.CallOutcome callOutcome = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCallOutcome($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\CallLogMessage\CallOutcome::class);
        $this->callOutcome = $var;

        return $this;
    }

}

