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

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

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

/**
 * Parameters to use when applying raise Target CPA recommendations.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.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\V23\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;
    }

}

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

