<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/resources/invoice.proto

namespace Google\Ads\GoogleAds\V23\Resources\Invoice;

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

/**
 * Represents regulatory cost information associated with an account.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.resources.Invoice.RegulatoryCostSummary</code>
 */
class RegulatoryCostSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The type of regulatory fee.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.enums.RegulatoryFeeTypeEnum.RegulatoryFeeType regulatory_fee_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $regulatory_fee_type = null;
    /**
     * Output only. The amount of the regulatory fee, in micros. The currency
     * code for this amount is the same as the Invoice.currency_code.
     *
     * Generated from protobuf field <code>optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $amount_micros = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $regulatory_fee_type
     *           Output only. The type of regulatory fee.
     *     @type int|string $amount_micros
     *           Output only. The amount of the regulatory fee, in micros. The currency
     *           code for this amount is the same as the Invoice.currency_code.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Resources\Invoice::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The type of regulatory fee.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.enums.RegulatoryFeeTypeEnum.RegulatoryFeeType regulatory_fee_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getRegulatoryFeeType()
    {
        return isset($this->regulatory_fee_type) ? $this->regulatory_fee_type : 0;
    }

    public function hasRegulatoryFeeType()
    {
        return isset($this->regulatory_fee_type);
    }

    public function clearRegulatoryFeeType()
    {
        unset($this->regulatory_fee_type);
    }

    /**
     * Output only. The type of regulatory fee.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.enums.RegulatoryFeeTypeEnum.RegulatoryFeeType regulatory_fee_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setRegulatoryFeeType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\RegulatoryFeeTypeEnum\RegulatoryFeeType::class);
        $this->regulatory_fee_type = $var;

        return $this;
    }

    /**
     * Output only. The amount of the regulatory fee, in micros. The currency
     * code for this amount is the same as the Invoice.currency_code.
     *
     * Generated from protobuf field <code>optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getAmountMicros()
    {
        return isset($this->amount_micros) ? $this->amount_micros : 0;
    }

    public function hasAmountMicros()
    {
        return isset($this->amount_micros);
    }

    public function clearAmountMicros()
    {
        unset($this->amount_micros);
    }

    /**
     * Output only. The amount of the regulatory fee, in micros. The currency
     * code for this amount is the same as the Invoice.currency_code.
     *
     * Generated from protobuf field <code>optional int64 amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setAmountMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->amount_micros = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegulatoryCostSummary::class, \Google\Ads\GoogleAds\V23\Resources\Invoice_RegulatoryCostSummary::class);

