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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.RoomArtifactTokenUsage</code>
 */
class RoomArtifactTokenUsage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 prompt_tokens = 1;</code>
     */
    protected $prompt_tokens = 0;
    /**
     * Generated from protobuf field <code>uint32 completion_tokens = 2;</code>
     */
    protected $completion_tokens = 0;
    /**
     * Generated from protobuf field <code>uint32 total_tokens = 3;</code>
     */
    protected $total_tokens = 0;
    /**
     * Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>
     */
    private $breakdown;
    /**
     * Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
     */
    protected $prompt_tokens_estimated_cost = null;
    /**
     * Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
     */
    protected $completion_tokens_estimated_cost = null;
    /**
     * Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>
     */
    protected $total_tokens_estimated_cost = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $prompt_tokens
     *     @type int $completion_tokens
     *     @type int $total_tokens
     *     @type array|\Google\Protobuf\Internal\MapField $breakdown
     *     @type float $prompt_tokens_estimated_cost
     *     @type float $completion_tokens_estimated_cost
     *     @type float $total_tokens_estimated_cost
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRoomArtifacts::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>uint32 prompt_tokens = 1;</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 = 2;</code>
     * @return int
     */
    public function getCompletionTokens()
    {
        return $this->completion_tokens;
    }

    /**
     * Generated from protobuf field <code>uint32 completion_tokens = 2;</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 = 3;</code>
     * @return int
     */
    public function getTotalTokens()
    {
        return $this->total_tokens;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getBreakdown()
    {
        return $this->breakdown;
    }

    /**
     * Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setBreakdown($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64);
        $this->breakdown = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
     * @return float
     */
    public function getPromptTokensEstimatedCost()
    {
        return isset($this->prompt_tokens_estimated_cost) ? $this->prompt_tokens_estimated_cost : 0.0;
    }

    public function hasPromptTokensEstimatedCost()
    {
        return isset($this->prompt_tokens_estimated_cost);
    }

    public function clearPromptTokensEstimatedCost()
    {
        unset($this->prompt_tokens_estimated_cost);
    }

    /**
     * Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setPromptTokensEstimatedCost($var)
    {
        GPBUtil::checkDouble($var);
        $this->prompt_tokens_estimated_cost = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
     * @return float
     */
    public function getCompletionTokensEstimatedCost()
    {
        return isset($this->completion_tokens_estimated_cost) ? $this->completion_tokens_estimated_cost : 0.0;
    }

    public function hasCompletionTokensEstimatedCost()
    {
        return isset($this->completion_tokens_estimated_cost);
    }

    public function clearCompletionTokensEstimatedCost()
    {
        unset($this->completion_tokens_estimated_cost);
    }

    /**
     * Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setCompletionTokensEstimatedCost($var)
    {
        GPBUtil::checkDouble($var);
        $this->completion_tokens_estimated_cost = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>
     * @return float
     */
    public function getTotalTokensEstimatedCost()
    {
        return isset($this->total_tokens_estimated_cost) ? $this->total_tokens_estimated_cost : 0.0;
    }

    public function hasTotalTokensEstimatedCost()
    {
        return isset($this->total_tokens_estimated_cost);
    }

    public function clearTotalTokensEstimatedCost()
    {
        unset($this->total_tokens_estimated_cost);
    }

    /**
     * Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>
     * @param float $var
     * @return $this
     */
    public function setTotalTokensEstimatedCost($var)
    {
        GPBUtil::checkDouble($var);
        $this->total_tokens_estimated_cost = $var;

        return $this;
    }

}

