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

namespace Google\Ads\GoogleAds\V9\Resources\AccessibleBiddingStrategy;

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

/**
 * An automated bidding strategy to help get the most conversions for your
 * campaigns while spending your budget.
 *
 * Generated from protobuf message <code>google.ads.googleads.v9.resources.AccessibleBiddingStrategy.MaximizeConversions</code>
 */
class MaximizeConversions extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The target cost per acquisition (CPA) option. This is the average amount
     * that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $target_cpa = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $target_cpa
     *           Output only. The target cost per acquisition (CPA) option. This is the average amount
     *           that you would like to spend per acquisition.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V9\Resources\AccessibleBiddingStrategy::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The target cost per acquisition (CPA) option. This is the average amount
     * that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getTargetCpa()
    {
        return $this->target_cpa;
    }

    /**
     * Output only. The target cost per acquisition (CPA) option. This is the average amount
     * that you would like to spend per acquisition.
     *
     * Generated from protobuf field <code>int64 target_cpa = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setTargetCpa($var)
    {
        GPBUtil::checkInt64($var);
        $this->target_cpa = $var;

        return $this;
    }

}

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

