<?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.InsightsAITextChatContent</code>
 */
class InsightsAITextChatContent extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsAITextChatRole role = 1;</code>
     */
    protected $role = 0;
    /**
     * Generated from protobuf field <code>string text = 2;</code>
     */
    protected $text = '';
    /**
     * Generated from protobuf field <code>optional string stream_id = 3;</code>
     */
    protected $stream_id = null;

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

    /**
     * Generated from protobuf field <code>.plugnmeet.InsightsAITextChatRole role = 1;</code>
     * @return int
     */
    public function getRole()
    {
        return $this->role;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasStreamId()
    {
        return isset($this->stream_id);
    }

    public function clearStreamId()
    {
        unset($this->stream_id);
    }

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

        return $this;
    }

}

