<?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.InsightsTranscriptionUserSessionReq</code>
 */
class InsightsTranscriptionUserSessionReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsUserSessionAction action = 1;</code>
     */
    protected $action = 0;
    /**
     * Generated from protobuf field <code>optional string spoken_lang = 2;</code>
     */
    protected $spoken_lang = null;
    /**
     * Generated from protobuf field <code>bool allowed_transcription_storage = 3;</code>
     */
    protected $allowed_transcription_storage = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $action
     *     @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>.plugnmeet.InsightsUserSessionAction action = 1;</code>
     * @return int
     */
    public function getAction()
    {
        return $this->action;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string spoken_lang = 2;</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 = 2;</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>bool allowed_transcription_storage = 3;</code>
     * @return bool
     */
    public function getAllowedTranscriptionStorage()
    {
        return $this->allowed_transcription_storage;
    }

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

        return $this;
    }

}

