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

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

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

    /**
     * Generated from protobuf field <code>uint32 duration_sec = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDurationSec($var)
    {
        GPBUtil::checkUint32($var);
        $this->duration_sec = $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 duration_sec_estimated_cost = 3;</code>
     * @return float
     */
    public function getDurationSecEstimatedCost()
    {
        return isset($this->duration_sec_estimated_cost) ? $this->duration_sec_estimated_cost : 0.0;
    }

    public function hasDurationSecEstimatedCost()
    {
        return isset($this->duration_sec_estimated_cost);
    }

    public function clearDurationSecEstimatedCost()
    {
        unset($this->duration_sec_estimated_cost);
    }

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

        return $this;
    }

}

