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

namespace Google\Ads\GoogleAds\V25\Resources\BillingSetup;

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

/**
 * Container of payments account information for this billing.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.BillingSetup.PaymentsAccountInfo</code>
 */
class PaymentsAccountInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. A 16 digit id used to identify the payments account
     * associated with the billing setup.
     * This must be passed as a string with dashes, for example,
     * "1234-5678-9012-3456".
     *
     * Generated from protobuf field <code>optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $payments_account_id = null;
    /**
     * Immutable. The name of the payments account associated with the billing
     * setup.
     * This enables the user to specify a meaningful name for a payments account
     * to aid in reconciling monthly invoices.
     * This name will be printed in the monthly invoices.
     *
     * Generated from protobuf field <code>optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $payments_account_name = null;
    /**
     * Immutable. A 12 digit id used to identify the payments profile associated
     * with the billing setup.
     * This must be passed in as a string with dashes, for example,
     * "1234-5678-9012".
     *
     * Generated from protobuf field <code>optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $payments_profile_id = null;
    /**
     * Output only. The name of the payments profile associated with the billing
     * setup.
     *
     * Generated from protobuf field <code>optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $payments_profile_name = null;
    /**
     * Output only. A secondary payments profile id present in uncommon
     * situations, for example, when a sequential liability agreement has been
     * arranged.
     *
     * Generated from protobuf field <code>optional string secondary_payments_profile_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $secondary_payments_profile_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $payments_account_id
     *           Output only. A 16 digit id used to identify the payments account
     *           associated with the billing setup.
     *           This must be passed as a string with dashes, for example,
     *           "1234-5678-9012-3456".
     *     @type string $payments_account_name
     *           Immutable. The name of the payments account associated with the billing
     *           setup.
     *           This enables the user to specify a meaningful name for a payments account
     *           to aid in reconciling monthly invoices.
     *           This name will be printed in the monthly invoices.
     *     @type string $payments_profile_id
     *           Immutable. A 12 digit id used to identify the payments profile associated
     *           with the billing setup.
     *           This must be passed in as a string with dashes, for example,
     *           "1234-5678-9012".
     *     @type string $payments_profile_name
     *           Output only. The name of the payments profile associated with the billing
     *           setup.
     *     @type string $secondary_payments_profile_id
     *           Output only. A secondary payments profile id present in uncommon
     *           situations, for example, when a sequential liability agreement has been
     *           arranged.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\BillingSetup::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. A 16 digit id used to identify the payments account
     * associated with the billing setup.
     * This must be passed as a string with dashes, for example,
     * "1234-5678-9012-3456".
     *
     * Generated from protobuf field <code>optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPaymentsAccountId()
    {
        return isset($this->payments_account_id) ? $this->payments_account_id : '';
    }

    public function hasPaymentsAccountId()
    {
        return isset($this->payments_account_id);
    }

    public function clearPaymentsAccountId()
    {
        unset($this->payments_account_id);
    }

    /**
     * Output only. A 16 digit id used to identify the payments account
     * associated with the billing setup.
     * This must be passed as a string with dashes, for example,
     * "1234-5678-9012-3456".
     *
     * Generated from protobuf field <code>optional string payments_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPaymentsAccountId($var)
    {
        GPBUtil::checkString($var, True);
        $this->payments_account_id = $var;

        return $this;
    }

    /**
     * Immutable. The name of the payments account associated with the billing
     * setup.
     * This enables the user to specify a meaningful name for a payments account
     * to aid in reconciling monthly invoices.
     * This name will be printed in the monthly invoices.
     *
     * Generated from protobuf field <code>optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getPaymentsAccountName()
    {
        return isset($this->payments_account_name) ? $this->payments_account_name : '';
    }

    public function hasPaymentsAccountName()
    {
        return isset($this->payments_account_name);
    }

    public function clearPaymentsAccountName()
    {
        unset($this->payments_account_name);
    }

    /**
     * Immutable. The name of the payments account associated with the billing
     * setup.
     * This enables the user to specify a meaningful name for a payments account
     * to aid in reconciling monthly invoices.
     * This name will be printed in the monthly invoices.
     *
     * Generated from protobuf field <code>optional string payments_account_name = 7 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setPaymentsAccountName($var)
    {
        GPBUtil::checkString($var, True);
        $this->payments_account_name = $var;

        return $this;
    }

    /**
     * Immutable. A 12 digit id used to identify the payments profile associated
     * with the billing setup.
     * This must be passed in as a string with dashes, for example,
     * "1234-5678-9012".
     *
     * Generated from protobuf field <code>optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getPaymentsProfileId()
    {
        return isset($this->payments_profile_id) ? $this->payments_profile_id : '';
    }

    public function hasPaymentsProfileId()
    {
        return isset($this->payments_profile_id);
    }

    public function clearPaymentsProfileId()
    {
        unset($this->payments_profile_id);
    }

    /**
     * Immutable. A 12 digit id used to identify the payments profile associated
     * with the billing setup.
     * This must be passed in as a string with dashes, for example,
     * "1234-5678-9012".
     *
     * Generated from protobuf field <code>optional string payments_profile_id = 8 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setPaymentsProfileId($var)
    {
        GPBUtil::checkString($var, True);
        $this->payments_profile_id = $var;

        return $this;
    }

    /**
     * Output only. The name of the payments profile associated with the billing
     * setup.
     *
     * Generated from protobuf field <code>optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPaymentsProfileName()
    {
        return isset($this->payments_profile_name) ? $this->payments_profile_name : '';
    }

    public function hasPaymentsProfileName()
    {
        return isset($this->payments_profile_name);
    }

    public function clearPaymentsProfileName()
    {
        unset($this->payments_profile_name);
    }

    /**
     * Output only. The name of the payments profile associated with the billing
     * setup.
     *
     * Generated from protobuf field <code>optional string payments_profile_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPaymentsProfileName($var)
    {
        GPBUtil::checkString($var, True);
        $this->payments_profile_name = $var;

        return $this;
    }

    /**
     * Output only. A secondary payments profile id present in uncommon
     * situations, for example, when a sequential liability agreement has been
     * arranged.
     *
     * Generated from protobuf field <code>optional string secondary_payments_profile_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSecondaryPaymentsProfileId()
    {
        return isset($this->secondary_payments_profile_id) ? $this->secondary_payments_profile_id : '';
    }

    public function hasSecondaryPaymentsProfileId()
    {
        return isset($this->secondary_payments_profile_id);
    }

    public function clearSecondaryPaymentsProfileId()
    {
        unset($this->secondary_payments_profile_id);
    }

    /**
     * Output only. A secondary payments profile id present in uncommon
     * situations, for example, when a sequential liability agreement has been
     * arranged.
     *
     * Generated from protobuf field <code>optional string secondary_payments_profile_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSecondaryPaymentsProfileId($var)
    {
        GPBUtil::checkString($var, True);
        $this->secondary_payments_profile_id = $var;

        return $this;
    }

}

