<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto

namespace Google\Ads\MarketingPlatform\Admin\V1alpha\ReportPropertyUsageResponse;

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

/**
 * Contains the bill amount.
 *
 * Generated from protobuf message <code>google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.BillInfo</code>
 */
class BillInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The amount of the monthly base fee.
     *
     * Generated from protobuf field <code>.google.type.Money base_fee = 1;</code>
     */
    protected $base_fee = null;
    /**
     * The amount of the event fee.
     *
     * Generated from protobuf field <code>.google.type.Money event_fee = 2;</code>
     */
    protected $event_fee = null;
    /**
     * The amount of the price protection credit, this is only available for
     * eligible customers.
     *
     * Generated from protobuf field <code>.google.type.Money price_protection_credit = 3;</code>
     */
    protected $price_protection_credit = null;
    /**
     * The total amount of the bill.
     *
     * Generated from protobuf field <code>.google.type.Money total = 4;</code>
     */
    protected $total = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Type\Money $base_fee
     *           The amount of the monthly base fee.
     *     @type \Google\Type\Money $event_fee
     *           The amount of the event fee.
     *     @type \Google\Type\Money $price_protection_credit
     *           The amount of the price protection credit, this is only available for
     *           eligible customers.
     *     @type \Google\Type\Money $total
     *           The total amount of the bill.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * The amount of the monthly base fee.
     *
     * Generated from protobuf field <code>.google.type.Money base_fee = 1;</code>
     * @return \Google\Type\Money|null
     */
    public function getBaseFee()
    {
        return $this->base_fee;
    }

    public function hasBaseFee()
    {
        return isset($this->base_fee);
    }

    public function clearBaseFee()
    {
        unset($this->base_fee);
    }

    /**
     * The amount of the monthly base fee.
     *
     * Generated from protobuf field <code>.google.type.Money base_fee = 1;</code>
     * @param \Google\Type\Money $var
     * @return $this
     */
    public function setBaseFee($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Money::class);
        $this->base_fee = $var;

        return $this;
    }

    /**
     * The amount of the event fee.
     *
     * Generated from protobuf field <code>.google.type.Money event_fee = 2;</code>
     * @return \Google\Type\Money|null
     */
    public function getEventFee()
    {
        return $this->event_fee;
    }

    public function hasEventFee()
    {
        return isset($this->event_fee);
    }

    public function clearEventFee()
    {
        unset($this->event_fee);
    }

    /**
     * The amount of the event fee.
     *
     * Generated from protobuf field <code>.google.type.Money event_fee = 2;</code>
     * @param \Google\Type\Money $var
     * @return $this
     */
    public function setEventFee($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Money::class);
        $this->event_fee = $var;

        return $this;
    }

    /**
     * The amount of the price protection credit, this is only available for
     * eligible customers.
     *
     * Generated from protobuf field <code>.google.type.Money price_protection_credit = 3;</code>
     * @return \Google\Type\Money|null
     */
    public function getPriceProtectionCredit()
    {
        return $this->price_protection_credit;
    }

    public function hasPriceProtectionCredit()
    {
        return isset($this->price_protection_credit);
    }

    public function clearPriceProtectionCredit()
    {
        unset($this->price_protection_credit);
    }

    /**
     * The amount of the price protection credit, this is only available for
     * eligible customers.
     *
     * Generated from protobuf field <code>.google.type.Money price_protection_credit = 3;</code>
     * @param \Google\Type\Money $var
     * @return $this
     */
    public function setPriceProtectionCredit($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Money::class);
        $this->price_protection_credit = $var;

        return $this;
    }

    /**
     * The total amount of the bill.
     *
     * Generated from protobuf field <code>.google.type.Money total = 4;</code>
     * @return \Google\Type\Money|null
     */
    public function getTotal()
    {
        return $this->total;
    }

    public function hasTotal()
    {
        return isset($this->total);
    }

    public function clearTotal()
    {
        unset($this->total);
    }

    /**
     * The total amount of the bill.
     *
     * Generated from protobuf field <code>.google.type.Money total = 4;</code>
     * @param \Google\Type\Money $var
     * @return $this
     */
    public function setTotal($var)
    {
        GPBUtil::checkMessage($var, \Google\Type\Money::class);
        $this->total = $var;

        return $this;
    }

}

