<?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.InsightsAITextChatStreamResult</code>
 */
class InsightsAITextChatStreamResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string text = 2;</code>
     */
    protected $text = '';
    /**
     * Generated from protobuf field <code>bool is_last_chunk = 3;</code>
     */
    protected $is_last_chunk = false;
    /**
     * Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
     */
    protected $prompt_tokens = 0;
    /**
     * Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
     */
    protected $completion_tokens = 0;
    /**
     * Generated from protobuf field <code>uint32 total_tokens = 6;</code>
     */
    protected $total_tokens = 0;
    /**
     * Generated from protobuf field <code>string createdAt = 7;</code>
     */
    protected $createdAt = '';

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

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $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>bool is_last_chunk = 3;</code>
     * @return bool
     */
    public function getIsLastChunk()
    {
        return $this->is_last_chunk;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
     * @return int
     */
    public function getPromptTokens()
    {
        return $this->prompt_tokens;
    }

    /**
     * Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setPromptTokens($var)
    {
        GPBUtil::checkUint32($var);
        $this->prompt_tokens = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
     * @return int
     */
    public function getCompletionTokens()
    {
        return $this->completion_tokens;
    }

    /**
     * Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setCompletionTokens($var)
    {
        GPBUtil::checkUint32($var);
        $this->completion_tokens = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 total_tokens = 6;</code>
     * @return int
     */
    public function getTotalTokens()
    {
        return $this->total_tokens;
    }

    /**
     * Generated from protobuf field <code>uint32 total_tokens = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setTotalTokens($var)
    {
        GPBUtil::checkUint32($var);
        $this->total_tokens = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string createdAt = 7;</code>
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

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

        return $this;
    }

}

