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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.InsightsGetUserStatusRes</code>
 */
class InsightsGetUserStatusRes extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     */
    protected $status = false;
    /**
     * Generated from protobuf field <code>string msg = 2;</code>
     */
    protected $msg = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsServiceType service_type = 3;</code>
     */
    protected $service_type = 0;
    /**
     * Generated from protobuf field <code>bool is_active = 4;</code>
     */
    protected $is_active = false;
    /**
     * Generated from protobuf field <code>optional string spoken_lang = 5;</code>
     */
    protected $spoken_lang = null;
    /**
     * Generated from protobuf field <code>optional bool allowed_transcription_storage = 6;</code>
     */
    protected $allowed_transcription_storage = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $status
     *     @type string $msg
     *     @type int $service_type
     *     @type bool $is_active
     *     @type string $spoken_lang
     *     @type bool $allowed_transcription_storage
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     * @return bool
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkBool($var);
        $this->status = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string msg = 2;</code>
     * @return string
     */
    public function getMsg()
    {
        return $this->msg;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsServiceType service_type = 3;</code>
     * @return int
     */
    public function getServiceType()
    {
        return $this->service_type;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsServiceType service_type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setServiceType($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\InsightsServiceType::class);
        $this->service_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_active = 4;</code>
     * @return bool
     */
    public function getIsActive()
    {
        return $this->is_active;
    }

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

        return $this;
    }

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

    public function hasSpokenLang()
    {
        return isset($this->spoken_lang);
    }

    public function clearSpokenLang()
    {
        unset($this->spoken_lang);
    }

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

        return $this;
    }

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

    public function hasAllowedTranscriptionStorage()
    {
        return isset($this->allowed_transcription_storage);
    }

    public function clearAllowedTranscriptionStorage()
    {
        unset($this->allowed_transcription_storage);
    }

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

        return $this;
    }

}

