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

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

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

    public function hasLabel()
    {
        return isset($this->label);
    }

    public function clearLabel()
    {
        unset($this->label);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 labelTimestamp = 2;</code>
     * @return int|string
     */
    public function getLabelTimestamp()
    {
        return isset($this->labelTimestamp) ? $this->labelTimestamp : 0;
    }

    public function hasLabelTimestamp()
    {
        return isset($this->labelTimestamp);
    }

    public function clearLabelTimestamp()
    {
        unset($this->labelTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional int64 labelTimestamp = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLabelTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->labelTimestamp = $var;

        return $this;
    }

}

