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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.GenerateAzureTokenRes</code>
 */
class GenerateAzureTokenRes 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>optional string token = 3;</code>
     */
    protected $token = null;
    /**
     * Generated from protobuf field <code>optional string service_region = 4;</code>
     */
    protected $service_region = null;
    /**
     * Generated from protobuf field <code>optional string key_id = 5;</code>
     */
    protected $key_id = null;
    /**
     * Generated from protobuf field <code>bool renew = 6;</code>
     */
    protected $renew = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $status
     *     @type string $msg
     *     @type string $token
     *     @type string $service_region
     *     @type string $key_id
     *     @type bool $renew
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetSpeechServices::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>optional string token = 3;</code>
     * @return string
     */
    public function getToken()
    {
        return isset($this->token) ? $this->token : '';
    }

    public function hasToken()
    {
        return isset($this->token);
    }

    public function clearToken()
    {
        unset($this->token);
    }

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

        return $this;
    }

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

    public function hasServiceRegion()
    {
        return isset($this->service_region);
    }

    public function clearServiceRegion()
    {
        unset($this->service_region);
    }

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

        return $this;
    }

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

    public function hasKeyId()
    {
        return isset($this->key_id);
    }

    public function clearKeyId()
    {
        unset($this->key_id);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool renew = 6;</code>
     * @return bool
     */
    public function getRenew()
    {
        return $this->renew;
    }

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

        return $this;
    }

}

