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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.SpeechServiceEvent</code>
 */
class SpeechServiceEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string user_id = 3;</code>
     */
    protected $user_id = null;
    /**
     * Generated from protobuf field <code>int64 total_usage = 4;</code>
     */
    protected $total_usage = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $user_id
     *     @type int|string $total_usage
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommon::initOnce();
        parent::__construct($data);
    }

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

    public function hasUserId()
    {
        return isset($this->user_id);
    }

    public function clearUserId()
    {
        unset($this->user_id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 total_usage = 4;</code>
     * @return int|string
     */
    public function getTotalUsage()
    {
        return $this->total_usage;
    }

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

        return $this;
    }

}

