<?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.ContactAction</code>
 */
class ContactAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string fullName = 1;</code>
     */
    protected $fullName = null;
    /**
     * Generated from protobuf field <code>optional string firstName = 2;</code>
     */
    protected $firstName = null;
    /**
     * Generated from protobuf field <code>optional string lidJid = 3;</code>
     */
    protected $lidJid = null;
    /**
     * Generated from protobuf field <code>optional bool saveOnPrimaryAddressbook = 4;</code>
     */
    protected $saveOnPrimaryAddressbook = null;
    /**
     * Generated from protobuf field <code>optional string pnJid = 5;</code>
     */
    protected $pnJid = null;
    /**
     * Generated from protobuf field <code>optional string username = 6;</code>
     */
    protected $username = null;

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

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

    public function hasFullName()
    {
        return isset($this->fullName);
    }

    public function clearFullName()
    {
        unset($this->fullName);
    }

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

        return $this;
    }

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

    public function hasFirstName()
    {
        return isset($this->firstName);
    }

    public function clearFirstName()
    {
        unset($this->firstName);
    }

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

        return $this;
    }

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

    public function hasLidJid()
    {
        return isset($this->lidJid);
    }

    public function clearLidJid()
    {
        unset($this->lidJid);
    }

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

        return $this;
    }

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

    public function hasSaveOnPrimaryAddressbook()
    {
        return isset($this->saveOnPrimaryAddressbook);
    }

    public function clearSaveOnPrimaryAddressbook()
    {
        unset($this->saveOnPrimaryAddressbook);
    }

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

        return $this;
    }

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

    public function hasPnJid()
    {
        return isset($this->pnJid);
    }

    public function clearPnJid()
    {
        unset($this->pnJid);
    }

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

        return $this;
    }

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

    public function hasUsername()
    {
        return isset($this->username);
    }

    public function clearUsername()
    {
        unset($this->username);
    }

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

        return $this;
    }

}

