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

namespace Livekit\DataStream;

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

/**
 * header properties specific to text streams
 *
 * Generated from protobuf message <code>livekit.DataStream.TextHeader</code>
 */
class TextHeader extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.DataStream.OperationType operation_type = 1;</code>
     */
    protected $operation_type = 0;
    /**
     * Optional: Version for updates/edits
     *
     * Generated from protobuf field <code>int32 version = 2;</code>
     */
    protected $version = 0;
    /**
     * Optional: Reply to specific message
     *
     * Generated from protobuf field <code>string reply_to_stream_id = 3 [(.logger.name) = "replyToStreamID"];</code>
     */
    protected $reply_to_stream_id = '';
    /**
     * file attachments for text streams
     *
     * Generated from protobuf field <code>repeated string attached_stream_ids = 4;</code>
     */
    private $attached_stream_ids;
    /**
     * true if the text has been generated by an agent from a participant's audio transcription
     *
     * Generated from protobuf field <code>bool generated = 5;</code>
     */
    protected $generated = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $operation_type
     *     @type int $version
     *           Optional: Version for updates/edits
     *     @type string $reply_to_stream_id
     *           Optional: Reply to specific message
     *     @type string[] $attached_stream_ids
     *           file attachments for text streams
     *     @type bool $generated
     *           true if the text has been generated by an agent from a participant's audio transcription
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.DataStream.OperationType operation_type = 1;</code>
     * @return int
     */
    public function getOperationType()
    {
        return $this->operation_type;
    }

    /**
     * Generated from protobuf field <code>.livekit.DataStream.OperationType operation_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setOperationType($var)
    {
        GPBUtil::checkEnum($var, \Livekit\DataStream\OperationType::class);
        $this->operation_type = $var;

        return $this;
    }

    /**
     * Optional: Version for updates/edits
     *
     * Generated from protobuf field <code>int32 version = 2;</code>
     * @return int
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Optional: Version for updates/edits
     *
     * Generated from protobuf field <code>int32 version = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->version = $var;

        return $this;
    }

    /**
     * Optional: Reply to specific message
     *
     * Generated from protobuf field <code>string reply_to_stream_id = 3 [(.logger.name) = "replyToStreamID"];</code>
     * @return string
     */
    public function getReplyToStreamId()
    {
        return $this->reply_to_stream_id;
    }

    /**
     * Optional: Reply to specific message
     *
     * Generated from protobuf field <code>string reply_to_stream_id = 3 [(.logger.name) = "replyToStreamID"];</code>
     * @param string $var
     * @return $this
     */
    public function setReplyToStreamId($var)
    {
        GPBUtil::checkString($var, True);
        $this->reply_to_stream_id = $var;

        return $this;
    }

    /**
     * file attachments for text streams
     *
     * Generated from protobuf field <code>repeated string attached_stream_ids = 4;</code>
     * @return RepeatedField<string>
     */
    public function getAttachedStreamIds()
    {
        return $this->attached_stream_ids;
    }

    /**
     * file attachments for text streams
     *
     * Generated from protobuf field <code>repeated string attached_stream_ids = 4;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAttachedStreamIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->attached_stream_ids = $arr;

        return $this;
    }

    /**
     * true if the text has been generated by an agent from a participant's audio transcription
     *
     * Generated from protobuf field <code>bool generated = 5;</code>
     * @return bool
     */
    public function getGenerated()
    {
        return $this->generated;
    }

    /**
     * true if the text has been generated by an agent from a participant's audio transcription
     *
     * Generated from protobuf field <code>bool generated = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setGenerated($var)
    {
        GPBUtil::checkBool($var);
        $this->generated = $var;

        return $this;
    }

}

