<?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.DeleteIndividualCallLogAction</code>
 */
class DeleteIndividualCallLogAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string peerJid = 1;</code>
     */
    protected $peerJid = null;
    /**
     * Generated from protobuf field <code>optional bool isIncoming = 2;</code>
     */
    protected $isIncoming = null;

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

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

    public function hasPeerJid()
    {
        return isset($this->peerJid);
    }

    public function clearPeerJid()
    {
        unset($this->peerJid);
    }

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

        return $this;
    }

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

    public function hasIsIncoming()
    {
        return isset($this->isIncoming);
    }

    public function clearIsIncoming()
    {
        unset($this->isIncoming);
    }

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

        return $this;
    }

}

