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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Request message for fetching all accessible payments accounts.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListPaymentsAccountsRequest</code>
 */
class ListPaymentsAccountsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ID of the customer to apply the PaymentsAccount list
     * operation to.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';

    /**
     * @param string $customerId Required. The ID of the customer to apply the PaymentsAccount list
     *                           operation to.
     *
     * @return \Google\Ads\GoogleAds\V23\Services\ListPaymentsAccountsRequest
     *
     * @experimental
     */
    public static function build(string $customerId): self
    {
        return (new self())
            ->setCustomerId($customerId);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $customer_id
     *           Required. The ID of the customer to apply the PaymentsAccount list
     *           operation to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\PaymentsAccountService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ID of the customer to apply the PaymentsAccount list
     * operation to.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCustomerId()
    {
        return $this->customer_id;
    }

    /**
     * Required. The ID of the customer to apply the PaymentsAccount list
     * operation to.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_id = $var;

        return $this;
    }

}

