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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.Pushname</code>
 */
class Pushname extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string id = 1;</code>
     */
    protected $id = null;
    /**
     * Generated from protobuf field <code>optional string pushname = 2;</code>
     */
    protected $pushname = null;

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

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

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

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

        return $this;
    }

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

    public function hasPushname()
    {
        return isset($this->pushname);
    }

    public function clearPushname()
    {
        unset($this->pushname);
    }

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

        return $this;
    }

}

