<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_sip.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.SIPTransferInfo</code>
 */
class SIPTransferInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string transfer_id = 1;</code>
     */
    protected $transfer_id = '';
    /**
     * Generated from protobuf field <code>string call_id = 2;</code>
     */
    protected $call_id = '';
    /**
     * Generated from protobuf field <code>string transfer_to = 3;</code>
     */
    protected $transfer_to = '';
    /**
     * Generated from protobuf field <code>int64 transfer_initiated_at_ns = 4;</code>
     */
    protected $transfer_initiated_at_ns = 0;
    /**
     * Generated from protobuf field <code>int64 transfer_completed_at_ns = 5;</code>
     */
    protected $transfer_completed_at_ns = 0;
    /**
     * Generated from protobuf field <code>.livekit.SIPTransferStatus transfer_status = 6;</code>
     */
    protected $transfer_status = 0;
    /**
     * Generated from protobuf field <code>string error = 7;</code>
     */
    protected $error = '';
    /**
     * Generated from protobuf field <code>.livekit.SIPStatus transfer_status_code = 8;</code>
     */
    protected $transfer_status_code = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $transfer_id
     *     @type string $call_id
     *     @type string $transfer_to
     *     @type int|string $transfer_initiated_at_ns
     *     @type int|string $transfer_completed_at_ns
     *     @type int $transfer_status
     *     @type string $error
     *     @type \Livekit\SIPStatus $transfer_status_code
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitSip::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string transfer_to = 3;</code>
     * @return string
     */
    public function getTransferTo()
    {
        return $this->transfer_to;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 transfer_initiated_at_ns = 4;</code>
     * @return int|string
     */
    public function getTransferInitiatedAtNs()
    {
        return $this->transfer_initiated_at_ns;
    }

    /**
     * Generated from protobuf field <code>int64 transfer_initiated_at_ns = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTransferInitiatedAtNs($var)
    {
        GPBUtil::checkInt64($var);
        $this->transfer_initiated_at_ns = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 transfer_completed_at_ns = 5;</code>
     * @return int|string
     */
    public function getTransferCompletedAtNs()
    {
        return $this->transfer_completed_at_ns;
    }

    /**
     * Generated from protobuf field <code>int64 transfer_completed_at_ns = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTransferCompletedAtNs($var)
    {
        GPBUtil::checkInt64($var);
        $this->transfer_completed_at_ns = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPTransferStatus transfer_status = 6;</code>
     * @return int
     */
    public function getTransferStatus()
    {
        return $this->transfer_status;
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPTransferStatus transfer_status = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setTransferStatus($var)
    {
        GPBUtil::checkEnum($var, \Livekit\SIPTransferStatus::class);
        $this->transfer_status = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPStatus transfer_status_code = 8;</code>
     * @return \Livekit\SIPStatus|null
     */
    public function getTransferStatusCode()
    {
        return $this->transfer_status_code;
    }

    public function hasTransferStatusCode()
    {
        return isset($this->transfer_status_code);
    }

    public function clearTransferStatusCode()
    {
        unset($this->transfer_status_code);
    }

    /**
     * Generated from protobuf field <code>.livekit.SIPStatus transfer_status_code = 8;</code>
     * @param \Livekit\SIPStatus $var
     * @return $this
     */
    public function setTransferStatusCode($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SIPStatus::class);
        $this->transfer_status_code = $var;

        return $this;
    }

}

