<?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.RoomArtifactCharacterCountUsage</code>
 */
class RoomArtifactCharacterCountUsage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint32 total_characters = 1;</code>
     */
    protected $total_characters = 0;
    /**
     * Generated from protobuf field <code>map<string, int64> breakdown = 2;</code>
     */
    private $breakdown;
    /**
     * Generated from protobuf field <code>optional double total_characters_estimated_cost = 3;</code>
     */
    protected $total_characters_estimated_cost = null;

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

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>map<string, int64> breakdown = 2;</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 total_characters_estimated_cost = 3;</code>
     * @return float
     */
    public function getTotalCharactersEstimatedCost()
    {
        return isset($this->total_characters_estimated_cost) ? $this->total_characters_estimated_cost : 0.0;
    }

    public function hasTotalCharactersEstimatedCost()
    {
        return isset($this->total_characters_estimated_cost);
    }

    public function clearTotalCharactersEstimatedCost()
    {
        unset($this->total_characters_estimated_cost);
    }

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

        return $this;
    }

}

