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

namespace Google\Ads\GoogleAds\V25\Services\ApplyRecommendationOperation;

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

/**
 * Parameters to use when applying raise Target CPA recommendations.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.ApplyRecommendationOperation.RaiseTargetCpaParameters</code>
 */
class RaiseTargetCpaParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Target to set CPA multiplier to. This is a required field.
     *
     * Generated from protobuf field <code>double target_cpa_multiplier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $target_cpa_multiplier = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $target_cpa_multiplier
     *           Required. Target to set CPA multiplier to. This is a required field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Target to set CPA multiplier to. This is a required field.
     *
     * Generated from protobuf field <code>double target_cpa_multiplier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return float
     */
    public function getTargetCpaMultiplier()
    {
        return $this->target_cpa_multiplier;
    }

    /**
     * Required. Target to set CPA multiplier to. This is a required field.
     *
     * Generated from protobuf field <code>double target_cpa_multiplier = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param float $var
     * @return $this
     */
    public function setTargetCpaMultiplier($var)
    {
        GPBUtil::checkDouble($var);
        $this->target_cpa_multiplier = $var;

        return $this;
    }

}

